From 14ced7e6a43d9c6cf0d4b224d529260718e9f973 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 28 Dec 2021 16:36:33 +0100 Subject: [PATCH] Remove the start icon in Ubuntu --- installSyncthing.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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! 🎉"