[Sent to both xwin-discuss, since in Solaris builds, xscreensaver is
  part of the X consolidation, so you'll see it in the X code drops
  eventually, and can already see our bug fixes in the X change logs,
  and to desktop-discuss, since that's where I imagine the people who
  build xscreensaver for blastwave, nexenta, etc. are more likely found.]

I've been playing with xscreensaver 4.23 off and on in my copious spare
time the past couple of months (or raht time waiting for other builds to
finish when I needed to amuse myself, since I've had no actual spare time).

First, I've made two tiny patches which I sent to jwz in November and have
attached here for anyone else who wants to use before 4.24 comes out:

   The first simply strips am or pm off the time in xscreensaver-text,
   since the default uptime output on Solaris is:
     9:37pm  up 18 day(s), 14:23,  4 users,  load average: 0.07, 0.07, 0.03

   which left the hacks showing strings like "pm  up 18 days(s)".

   The second is mainly a nitpick in the pam-passwd.c code - the
   st_mode in stat was being treated as a bitmask when it's not,
   so on platforms like FreeBSD & Solaris matches directories as
   well as sockets, symlinks and other file types.

[The second was from my scan of all the X consolidation sources for this
  problem after seeing Casper scan & fix the ON sources for the problem.
  See http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6348365 .]

I've also been trying various things to make the hacks more interesting
or better tuned for Solaris/JDS.   Things I've tried so far:

- Patching some of the default options in XScreenSaver.ad.in to use date
   instead of fortune (since Solaris itself doesn't ship fortune) for default
   text in hacks, and using the blogs.sun.com feed instead of livejournal
   (though I haven't seen this actually used yet - and the feed from
    planetsolaris.org or opensolaris.org or a packager-specific feed may make
    more sense for others anyway):

   -*textProgram:          fortune
   -*textURL:              http://www.livejournal.com/stats/latest-rss.bml
   +*textProgram:          date
   +*textURL:              http://blogs.sun.com/roller/rss

- Adding options to the calls to the flag & xflame hacks to use specific
   images instead of the default Bob Dobbs pipe-smoking image.  Unfortunately,
   when I asked our marketing/branding people about this, they weren't exactly
   thrilled at the thought of using our official logos, especially for xflame
   since it wasn't clear if it was denoting the logo was "hot" or "trash being
   incinerated", so I haven't figured which images to use yet.   The GNOME foot
   logo seems to fit nicely in the xflame hack, but I'm not sure if this is an
   appropriate use of the GNOME logo either - anyone have suggestions or should
   this just be left at the defaults?   For just testing, you can run these on
   the command line - for instance, given our installation paths in Solaris,
   you could run:
        /usr/openwin/lib/xscreensaver/hacks/xflame -bitmap \
                /usr/share/pixmaps/gnome-logo-large.png
        /usr/openwin/lib/xscreensaver/hacks/flag -bitmap \
                /usr/dt/appconfig/icons/C/SDtlogo.pm
   (Once chosen, these options would just be patched into XScreenSaver.ad.in as
    well.)

- Configure flags - beyond the set for just finding everything in Solaris that
   we've used for a while:
  --prefix=$(XSS_prefix) \
  --with-gnome --enable-gtk-doc --with-gtk2=/usr --with-pixbuf=/usr \
  --with-shadow --enable-locking --with-pam=/usr \
  --with-dpms --enable-dpms --disable-screengrab \
  --with-gl=yes  --without-motif --with-jpeg=/usr/sfw \
  --mandir='$${prefix}/share/man' \
  --libexecdir='$${prefix}/$(XSS_libexec)' --datadir='$${prefix}/share' \
  --with-hackdir='$${prefix}/lib/xscreensaver/hacks' \
  --with-configdir=$(XSS_prefix)/lib/xscreensaver/config/control-center-2.0

   I've added:
  --with-image-directory=/usr/share/pixmaps/backgrounds

   so that it uses the images from the JDS backdrops for more interesting
   defaults when not grabbing real screen images than the checkerboard it
   uses in our current builds.

- Just because I'm sure someone somewhere will complain if I don't, I've
   removed a few words in the random words list in hacks/barcode.c to
   avoid complaints about inappropriate language or other peoples trademarks.

Any other suggestions people have or are using in their builds?   As a spare
time amusement, I'm not sure if or when this would be integrated into Solaris
itself - and if so, would probably be the hacks first, since those are not
changed from upstream in our builds, while the main xscreensaver source was
forked from xscreensaver 4.05 and heavily modified in our version (especially
the unlock dialog box which is converted to gtk in our builds).

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xscreensaver-text.patch
URL: 
<http://mail.opensolaris.org/pipermail/xwin-discuss/attachments/20060104/171f8635/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: passwd-pam.patch
URL: 
<http://mail.opensolaris.org/pipermail/xwin-discuss/attachments/20060104/171f8635/attachment-0001.ksh>

Reply via email to