From: Nick Bowler Date: Thu, 6 Nov 2008 20:40:43 +0000 (-0500) Subject: Add wallpaper setting to SessionInitFunction as well as InitFunction. X-Git-Url: http://git.draconx.ca/gitweb/fvwmconf.git/commitdiff_plain/cdf15feee987a712142d6a6a9def66c1fde74f04 Add wallpaper setting to SessionInitFunction as well as InitFunction. --- diff --git a/common/wallpaper b/common/wallpaper index a80e320..b858eb4 100644 --- a/common/wallpaper +++ b/common/wallpaper @@ -22,9 +22,13 @@ AddToFunc SetWallpaper + I Exec exec ln -sf "$0" "$[BGFILE]" + I Exec exec $[SETROOT] "$[BGFILE]" -AddToFunc InitFunction +DestroyFunc SetInitialWallpaper +AddToFunc SetInitialWallpaper + I Exec if [ -f "$[BGFILE]" ]; then \ $[SETROOT] "$[BGFILE]"; \ else \ $[SETROOT] "$($[FVWM_USERDIR]/scripts/randombg.pl $[BGROOT])"; \ fi + +AddToFunc InitFunction I SetInitialWallpaper +AddToFunc SessionInitFunction I SetInitialWallpaper