diff --git a/installSyncthing.sh b/installSyncthing.sh index a6e766e..d440278 100644 --- a/installSyncthing.sh +++ b/installSyncthing.sh @@ -11,4 +11,15 @@ echo -e "\nSyncthing installed!" sudo systemctl enable syncthing@$USER.service sudo systemctl start syncthing@$USER.service +# Removal of Ubuntu icon +if grep "Ubuntu" /proc/version > /dev/null; +then + # We remove the Ubuntu desktop shortcut only if it already exists + if [ -f /usr/share/applications/syncthing-start.desktop ] + then + sudo mv /usr/share/applications/syncthing-start.desktop /usr/share/applications/syncthing-start.desktop.bak + echo -e "\nSyncthing Start-icon removed!" + fi +fi + echo -e "\nSyncthing configured to start at startup! 🎉"