On Thu, Jan 15, 2004 at 10:24:30PM +0000, Antony Gelberg wrote: > #!/bin/sh > NEXTFILE=`ls $1 | rl -c 1` > wmsetbg $1$NEXTFILE > > Now that's coding. Anyway, it works. However, cron reports: > wmsetbg fatal error: could not open display
Hi, Antony. Do you mean it works despite the fatal error?? Or that it doesn't work? I don't have it installed, but wmsetbg should accept the ``-display <foo>'' option or an equivalent; replace <foo> with the actual name of the display to change the wallpaper in; just examine the $DISPLAY environment variable from within a running X session. If you have just one local X session at any given time, it probably will be ``:0''. If you have a more complicated setup, looking @ /proc/`pidof some-X-app`/environ should do. HTH, Jan. -- Jan Minar "Please don't CC me, I'm subscribed." x 9
pgp00000.pgp
Description: PGP signature