From 3fd085bedcf634abd8895bf705b42c57726c6c10 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 28 Dec 2021 16:29:55 +0100 Subject: [PATCH] Remove All the icon added when Latex is installed --- installLatex.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 installLatex.sh diff --git a/installLatex.sh b/installLatex.sh new file mode 100644 index 0000000..c4d4d13 --- /dev/null +++ b/installLatex.sh @@ -0,0 +1,25 @@ +# Install Latex +# sudo apt update +# sudo apt install texlive-full -y +# echo -e "\nLatex installed!" + +if grep "Ubuntu" /proc/version > /dev/null; +then + # Path where icons are saved + pathicons='/usr/share/applications' + + apps=("display-im6.q16" "prerex" "vprerex" "texdoctk" "info") + + # We remove the Ubuntu desktop shortcut only if it already exists + for app in ${apps[@]} + do + if [ -f $pathicons/$app.desktop ] + then + sudo mv $pathicons/$app.desktop $pathicons/$app.desktop.bak + else + echo "$app not found" + fi + done +fi + +echo -e "\nLatex additionnal icons removed! 🎉"