From b9b3f05fab800c17cb8ed3c96baa92cc02893bad Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 24 Jan 2016 11:05:08 +1100 Subject: [PATCH] getwallpaper: Also check that .fehbg exists --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index 15490ca1..cee2d79c 100755 --- a/fetch +++ b/fetch @@ -977,7 +977,7 @@ getvisualstyle () { getwallpaper () { case "$os" in "Linux" | *"BSD") - if type -p feh >/dev/null 2>&1; then + if type -p feh >/dev/null 2>&1 && [ -f "$HOME/.fehbg" ]; then img="$(awk -F\' '/feh/ {printf $2}' "$HOME/.fehbg")" elif type -p nitrogen >/dev/null 2>&1; then img="$(awk -F'=' '/file/ {printf $2}' "$HOME/.config/nitrogen/bg-saved.cfg")"