diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-08-28 18:54:52 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2016-09-03 18:08:14 (GMT) |
commit | e8021e36974bb81720d4d5658a69e2d9711d702c (patch) | |
tree | 70a5eae5330fa6293d3c25a39b50d0e628764735 /util/fbsetbg | |
parent | 2cfffee19b9848a9e39e6149cbd97e23e7adddbc (diff) | |
download | fluxbox-e8021e36974bb81720d4d5658a69e2d9711d702c.zip fluxbox-e8021e36974bb81720d4d5658a69e2d9711d702c.tar.bz2 |
handle DISPLAY :x and :x.0 idem
Patch originally provided by Francesco Poli to Debian
BUG: 1052
Diffstat (limited to 'util/fbsetbg')
-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 |