fix issue with multiple spaces in filename in fbsetbg
This commit is contained in:
parent
97c5f12615
commit
f1fd7f464b
1 changed files with 3 additions and 3 deletions
|
@ -155,14 +155,14 @@ remembercommand() {
|
||||||
grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp
|
grep -vs "|${DISPLAY}$" ${lastwallpaper} > ${lastwallpaper}.tmp
|
||||||
mv -f ${lastwallpaper}.tmp ${lastwallpaper}
|
mv -f ${lastwallpaper}.tmp ${lastwallpaper}
|
||||||
if [ "$option" = fbsetroot ]; then
|
if [ "$option" = fbsetroot ]; then
|
||||||
echo $option'|'$wallpaper'|'$DISPLAY >> $lastwallpaper
|
echo $option"|$wallpaper|"$DISPLAY >> $lastwallpaper
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
# Make dir/../../path/file.jpg work
|
# Make dir/../../path/file.jpg work
|
||||||
case $wallpaper in
|
case $wallpaper in
|
||||||
# no spaces allowed between the varname and '|'
|
# no spaces allowed between the varname and '|'
|
||||||
/*) echo $option $option2'|'$wallpaper'|'$DISPLAY >> $lastwallpaper ;;
|
/*) echo $option $option2"|$wallpaper|"$DISPLAY >> $lastwallpaper ;;
|
||||||
*) echo $option $option2'|'$PWD/$wallpaper'|'$DISPLAY >> $lastwallpaper ;;
|
*) echo $option $option2"|$PWD/$wallpaper|"$DISPLAY >> $lastwallpaper ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue