From 7c56a9727204abc78a5c7464e35d42672876688e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 28 Dec 2021 16:38:15 +0100 Subject: [PATCH] Remove the flameshot icon --- installFlameshot.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/installFlameshot.sh b/installFlameshot.sh index dcc1e3b..851e08c 100644 --- a/installFlameshot.sh +++ b/installFlameshot.sh @@ -30,4 +30,15 @@ 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; +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 +fi + echo -e "\nFlameshot configured! 🎉"