From 4b9f85b09e293d1de6bb88f4b3575a937ac547d6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 19 Nov 2009 16:48:42 +0100 Subject: random_wallpaper: fix files with spaces in name --- scripts/random_wallpaper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/random_wallpaper.sh b/scripts/random_wallpaper.sh index 58b3039..3d2f803 100755 --- a/scripts/random_wallpaper.sh +++ b/scripts/random_wallpaper.sh @@ -14,7 +14,7 @@ else file = ${FVWM_USERDIR}/images/default_wall.jpg fi -convert ${file} -resize `xdpyinfo |grep dimensions|awk '{print $2}'` "${FVWM_USERDIR}/tmp/current_wall.png" +convert "${file}" -resize `xdpyinfo |grep dimensions|awk '{print $2}'` "${FVWM_USERDIR}/tmp/current_wall.png" feh --bg-center "${FVWM_USERDIR}/tmp/current_wall.png" FvwmCommand Refresh -- cgit v1.2.3