aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-23 11:45:59 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-23 11:45:59 (GMT)
commitf1fd7f464bb68dc6f846b1a8c9213f4a2f8c22d8 (patch)
treedec80a738c2a25410b7d36884b330ffb7044a5bb
parent97c5f126158f82f6edfd1ea13278c85824f41548 (diff)
downloadfluxbox_paul-f1fd7f464bb68dc6f846b1a8c9213f4a2f8c22d8.zip
fluxbox_paul-f1fd7f464bb68dc6f846b1a8c9213f4a2f8c22d8.tar.bz2
fix issue with multiple spaces in filename in fbsetbg
-rw-r--r--util/fbsetbg6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/fbsetbg b/util/fbsetbg
index 64c8728..0f38d4c 100644
--- a/util/fbsetbg
+++ b/util/fbsetbg
@@ -155,14 +155,14 @@ remembercommand() {
155 grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp 155 grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp
156 mv -f ${lastwallpaper}.tmp ${lastwallpaper} 156 mv -f ${lastwallpaper}.tmp ${lastwallpaper}
157 if [ "$option" = fbsetroot ]; then 157 if [ "$option" = fbsetroot ]; then
158 echo $option'|'$wallpaper'|'$DISPLAY >> $lastwallpaper 158 echo $option"|$wallpaper|"$DISPLAY >> $lastwallpaper
159 return 159 return
160 fi 160 fi
161 # Make dir/../../path/file.jpg work 161 # Make dir/../../path/file.jpg work
162 case $wallpaper in 162 case $wallpaper in
163 # no spaces allowed between the varname and '|' 163 # no spaces allowed between the varname and '|'
164 /*) echo $option $option2'|'$wallpaper'|'$DISPLAY >> $lastwallpaper ;; 164 /*) echo $option $option2"|$wallpaper|"$DISPLAY >> $lastwallpaper ;;
165 *) echo $option $option2'|'$PWD/$wallpaper'|'$DISPLAY >> $lastwallpaper ;; 165 *) echo $option $option2"|$PWD/$wallpaper|"$DISPLAY >> $lastwallpaper ;;
166 esac 166 esac
167} 167}
168 168