handle DISPLAY :x and :x.0 idem Patch originally provided by Francesco Poli to Debian BUG: 1052
Thomas Lübking thomas.luebking@gmail.com
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
util/fbsetbg
→
util/fbsetbg
@@ -47,6 +47,7 @@ # The wallpapersetter is selected in this order
wpsetters="${wpsetters:=Esetroot wmsetbg feh hsetroot chbg display qiv xv xsri xli xsetbg}" # broken icewmbg' lastwallpaper="${HOME}/.fluxbox/lastwallpaper" +DISPLAY=${DISPLAY%.0} WHOAMI=`whoami` [ "$WHOAMI" = root ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin@@ -167,7 +168,7 @@ # fi
} remembercommand() { - grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp + grep -vs "|${DISPLAY}$\||${DISPLAY}\.0$" ${lastwallpaper} > ${lastwallpaper}.tmp mv -f ${lastwallpaper}.tmp ${lastwallpaper} if [ "$option" = fbsetroot ]; then echo $option"|$wallpaper|$style|"$DISPLAY >> $lastwallpaper