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
Jim Ramsay i.am@jimramsay.com
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
util/fbsetbg
→
util/fbsetbg
@@ -308,6 +308,7 @@ if [ "$style" != "style" -a -n "$wallpaper" ]; then
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