From d9b11f6dc663386738635e4f36bf7d2efc4fb70a Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sat, 29 Jun 2019 19:09:19 +0200 Subject: Added check for gifview command --- smart-wallpaper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart-wallpaper b/smart-wallpaper index 273d722..5b2bdc5 100755 --- a/smart-wallpaper +++ b/smart-wallpaper @@ -16,7 +16,7 @@ print_usage() { } set_wallpaper() { - if [[ $1 == *".gif" ]]; then + if [[ $1 == *".gif" ]] && [ -f /usr/bin/gifview ]; then gifview --animate -w root $1 else feh --bg-fill $1 -- cgit 1.4.1