Remove the start icon in Ubuntu
This commit is contained in:
parent
11c0aa3a21
commit
14ced7e6a4
1 changed files with 11 additions and 0 deletions
|
@ -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! 🎉"
|
||||
|
|
Reference in a new issue