Don't complain on '-z' if there's no lastwallpaper

This hides the odd cornercase of users with no lastwallpaper file and no
background set in their style or overlay.

Adapted from the patch at
http://sourceforge.net/tracker/?func=detail&aid=2389567&group_id=35398&atid=413962
This commit is contained in:
Jim Ramsay 2009-04-24 14:15:58 -04:00
parent edffe9c93f
commit ae2d4b6b53

View file

@ -308,6 +308,7 @@ while [ $# -gt 0 ]; do
remember=false
break
fi
ignore_missing_wallpaper=true
style="style"
shift ;;
-Z)
@ -521,6 +522,9 @@ fi
if [ ! -r "$wallpaper" ]; then
if [ "$ignore_missing_wallpaper" == "true" ]; then
exit 0
fi
message "Can't find wallpaper $wallpaper"
exit 1
fi