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)