diff --git a/installSpotify.sh b/installSpotify.sh index 9243083..ca3e36a 100644 --- a/installSpotify.sh +++ b/installSpotify.sh @@ -20,4 +20,6 @@ sudo make install cd .. rm -rf spotify-adblock # We replace the Ubuntu desktop shortcut -sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop +if [ -f /usr/share/applications/spotify.desktop ] ; then + sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop +fi