diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/fbsetbg | 3 |
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 @@ | |||
47 | wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg' | 47 | wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg' |
48 | lastwallpaper="${HOME}/.fluxbox/lastwallpaper" | 48 | lastwallpaper="${HOME}/.fluxbox/lastwallpaper" |
49 | 49 | ||
50 | DISPLAY=${DISPLAY%.0} | ||
50 | 51 | ||
51 | WHOAMI=`whoami` | 52 | WHOAMI=`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 | ||
169 | remembercommand() { | 170 | remembercommand() { |
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 |