Remove the start icon in Ubuntu

This commit is contained in:
Mylloon 2021-12-28 16:36:33 +01:00
parent 11c0aa3a21
commit 14ced7e6a4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -11,4 +11,15 @@ echo -e "\nSyncthing installed!"
sudo systemctl enable syncthing@$USER.service sudo systemctl enable syncthing@$USER.service
sudo systemctl start 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! 🎉" echo -e "\nSyncthing configured to start at startup! 🎉"