Improve wallpaper-setting pipeline robustness
[khome.git] / home / .xlaunch.d / background
index ab4c301..a02d34c 100755 (executable)
@@ -3,8 +3,12 @@
 set -e
 
 BG_COLOR='#b2b2a0'
-BG_IMAGE=$(< "$FILE_WALLPAPER_CURR")
 
 #xsetroot -solid "$BG_COLOR"
 hsetroot -solid "$BG_COLOR"   # Because xsetroot is incompatible with compton.
-feh --bg-scale "$BG_IMAGE"
+
+if test -f "$FILE_WALLPAPER_CURR"
+then
+    bg_image=$(< "$FILE_WALLPAPER_CURR")
+    feh --bg-scale "$bg_image"
+fi
This page took 0.023477 seconds and 4 git commands to generate.