From 92e05783f77859d5f5041113956045ef637bf0f7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 28 Dec 2021 16:29:42 +0100 Subject: [PATCH] Remove additional icon added in Ubuntu --- installFish.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/installFish.sh b/installFish.sh index 5ad6f18..f87f277 100644 --- a/installFish.sh +++ b/installFish.sh @@ -64,5 +64,15 @@ else # if regular distro (i.e. Ubuntu) fish -c "abbr spotify 'LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify &> /dev/null & disown'" fi +# 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/fish.desktop ] + then + sudo mv /usr/share/applications/fish.desktop /usr/share/applications/fish.desktop.bak + fi +fi + echo -e "\nFish configured! 🎉" echo "You must log out to finish applying the changes."