From cdf15feee987a712142d6a6a9def66c1fde74f04 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 6 Nov 2008 15:40:43 -0500 Subject: [PATCH] Add wallpaper setting to SessionInitFunction as well as InitFunction. --- common/wallpaper | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.43.0