diff --git a/ChangeLog b/ChangeLog index ada6fc2f..b0bb2f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/util/fbsetbg b/util/fbsetbg index 8f77f52a..5e58e197 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -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