Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 56302 Details for
Bug 89134
User name in xjack hack from xscreensaver
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xjack-username.diff
xjack-username.diff (text/plain), 1.10 KB, created by
Krzysztof Pawlik (RETIRED)
on 2005-04-14 15:33:36 UTC
(
hide
)
Description:
xjack-username.diff
Filename:
MIME Type:
Creator:
Krzysztof Pawlik (RETIRED)
Created:
2005-04-14 15:33:36 UTC
Size:
1.10 KB
patch
obsolete
>diff -Nru xscreensaver-4.20.original/hacks/xjack.c xscreensaver-4.20/hacks/xjack.c >--- xscreensaver-4.20.original/hacks/xjack.c 2005-04-14 23:47:12.000000000 +0200 >+++ xscreensaver-4.20/hacks/xjack.c 2005-04-15 00:11:32.000000000 +0200 >@@ -39,7 +39,8 @@ > void > screenhack (Display *dpy, Window window) > { >- static const char *source = "All work and no play makes Jack a dull boy. "; >+ static const char source[1024]; >+ static int initDone = 0; > /* If you're here because you're thinking about making the above string be > customizable, then you don't get the joke. You loser. */ > const char *s = source; >@@ -62,6 +63,15 @@ > char *fontname = get_string_resource ("font", "Font"); > XFontStruct *font = XLoadQueryFont (dpy, fontname); > >+ if (initDone == 0) { >+ memset(source, 0, 1024); >+ if (getenv("USER") != NULL) { >+ sprintf(source, "All work and no play makes %s a dull boy. ", getenv("USER")); >+ } else >+ sprintf(source, "All work and no play makes Jack a dull boy. "); >+ initDone = 1; >+ } >+ > if (!font) > font = XLoadQueryFont (dpy, "-*-*-medium-r-*-*-*-240-*-*-m-*-*-*"); > if (!font)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 89134
:
56302
|
57910
|
57911
|
57920