little fix for fbsetbg (patch from mark tiefenbruck)

This commit is contained in:
mathias 2006-01-23 22:52:56 +00:00
parent b429656122
commit c3e6efb4e2
2 changed files with 6 additions and 0 deletions

View file

@ -1,5 +1,7 @@
(Format: Year/Month/Day)
Changes for 0.9.15:
*06/01/23:
* minor fix for fbsetbg (thanx Mark Tiefenbruck)
*06/01/16:
* minor changes to fix some warnings (Thanks php-coder)
Screen.cc Window.cc MenuCreator.cc MenuTheme.hh

View file

@ -287,6 +287,10 @@ while [ $# -gt 0 ]; do
if [ -r "$lastwallpaper" ]; then
option=`grep "|${DISPLAY}$" $lastwallpaper|cut -d'|' -f1`
wallpaper=`grep "|${DISPLAY}$" $lastwallpaper|cut -d'|' -f2`
if [ -z "$wallpaper" ]; then
option=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f1`
wallpaper=`grep "|${DISPLAY}.0$" $lastwallpaper|cut -d'|' -f2`
fi
if [ -z "$wallpaper" ]; then
message "No previous wallpaper recorded for display ${DISPLAY}"
exit 1