diff --git a/installFlameshot.sh b/installFlameshot.sh index 851e08c..80cb023 100644 --- a/installFlameshot.sh +++ b/installFlameshot.sh @@ -30,15 +30,12 @@ gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/or gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/flameshot-shortcut/ binding 'Print' # set key echo -e "\nFlameshot shortcut added (ImprEcran key)!" -# Removal of Ubuntu icon -if grep "Ubuntu" /proc/version > /dev/null; + +# We remove the Ubuntu desktop shortcut only if it already exists +if [ -f /usr/share/applications/org.flameshot.Flameshot.desktop ] then - # We remove the Ubuntu desktop shortcut only if it already exists - if [ -f /usr/share/applications/org.flameshot.Flameshot.desktop ] - then - sudo mv /usr/share/applications/org.flameshot.Flameshot.desktop /usr/share/applications/org.flameshot.Flameshot.desktop.bak - echo -e "\nFlameshot icon removed!" - fi + sudo mv /usr/share/applications/org.flameshot.Flameshot.desktop /usr/share/applications/org.flameshot.Flameshot.desktop.bak + echo -e "\nFlameshot icon removed!" fi echo -e "\nFlameshot configured! 🎉" diff --git a/installSyncthing.sh b/installSyncthing.sh index d440278..4c4af28 100644 --- a/installSyncthing.sh +++ b/installSyncthing.sh @@ -11,15 +11,11 @@ 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; +# We remove the Ubuntu desktop shortcut only if it already exists +if [ -f /usr/share/applications/syncthing-start.desktop ] 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 + sudo mv /usr/share/applications/syncthing-start.desktop /usr/share/applications/syncthing-start.desktop.bak + echo -e "\nSyncthing Start-icon removed!" fi echo -e "\nSyncthing configured to start at startup! 🎉"