OSDN Git Service

spoticli notifications
authorpaperbenni <paperbenni@gmail.com>
Sun, 22 Mar 2020 23:45:27 +0000 (00:45 +0100)
committerpaperbenni <paperbenni@gmail.com>
Sun, 22 Mar 2020 23:45:27 +0000 (00:45 +0100)
programs/spoticli

index b4ea6da..04f10c3 100755 (executable)
@@ -4,6 +4,11 @@
 ## cli wrapper for spotify ##
 #############################
 
+if ! [ -e /opt/spotify/spotify ]; then
+    notify-send "please run 'yay -S spotify' in a terminal to use this"
+    exit
+fi
+
 if ! pgrep spotify &>/dev/null; then
     LD_PRELOAD="/opt/instantos/spotify-adblock.so" spotify
     exit