aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/fbsetbg3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/fbsetbg b/util/fbsetbg
index fb6f3af..1b3e1d9 100644
--- a/util/fbsetbg
+++ b/util/fbsetbg
@@ -47,6 +47,7 @@
47wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg' 47wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg'
48lastwallpaper="${HOME}/.fluxbox/lastwallpaper" 48lastwallpaper="${HOME}/.fluxbox/lastwallpaper"
49 49
50DISPLAY=${DISPLAY%.0}
50 51
51WHOAMI=`whoami` 52WHOAMI=`whoami`
52[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin 53[ "$WHOAMI" = root ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin
@@ -167,7 +168,7 @@ message() {
167} 168}
168 169
169remembercommand() { 170remembercommand() {
170 grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp 171 grep -vs "|${DISPLAY}$\||${DISPLAY}\.0$" ${lastwallpaper} > ${lastwallpaper}.tmp
171 mv -f ${lastwallpaper}.tmp ${lastwallpaper} 172 mv -f ${lastwallpaper}.tmp ${lastwallpaper}
172 if [ "$option" = fbsetroot ]; then 173 if [ "$option" = fbsetroot ]; then
173 echo $option"|$wallpaper|$style|"$DISPLAY >> $lastwallpaper 174 echo $option"|$wallpaper|$style|"$DISPLAY >> $lastwallpaper