about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-29 19:09:19 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-29 19:09:19 +0200
commitd9b11f6dc663386738635e4f36bf7d2efc4fb70a (patch)
treea8994234c874f6ee4523d8dac29d82c4b4ec0884
parentAdded gif support (diff)
downloadsmart-wallpaper-d9b11f6dc663386738635e4f36bf7d2efc4fb70a.tar.gz
smart-wallpaper-d9b11f6dc663386738635e4f36bf7d2efc4fb70a.tar.bz2
smart-wallpaper-d9b11f6dc663386738635e4f36bf7d2efc4fb70a.zip
Added check for gifview command
-rwxr-xr-xsmart-wallpaper2
1 files changed, 1 insertions, 1 deletions
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