Don't check if Ubuntu is the distro because they are not called on WSL distro in the global script

This commit is contained in:
Mylloon 2021-12-28 16:40:05 +01:00
parent 7c56a97272
commit 3d5440ebf9
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 9 additions and 16 deletions

View file

@ -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 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)!" 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 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 sudo mv /usr/share/applications/org.flameshot.Flameshot.desktop /usr/share/applications/org.flameshot.Flameshot.desktop.bak
echo -e "\nFlameshot icon removed!" echo -e "\nFlameshot icon removed!"
fi
fi fi
echo -e "\nFlameshot configured! 🎉" echo -e "\nFlameshot configured! 🎉"

View file

@ -11,15 +11,11 @@ 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 # We remove the Ubuntu desktop shortcut only if it already exists
if grep "Ubuntu" /proc/version > /dev/null; if [ -f /usr/share/applications/syncthing-start.desktop ]
then 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 sudo mv /usr/share/applications/syncthing-start.desktop /usr/share/applications/syncthing-start.desktop.bak
echo -e "\nSyncthing Start-icon removed!" echo -e "\nSyncthing Start-icon removed!"
fi
fi fi
echo -e "\nSyncthing configured to start at startup! 🎉" echo -e "\nSyncthing configured to start at startup! 🎉"