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:
parent
edffe9c93f
commit
ae2d4b6b53
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue