Remove All the icon added when Latex is installed
This commit is contained in:
parent
92e05783f7
commit
3fd085bedc
1 changed files with 25 additions and 0 deletions
25
installLatex.sh
Normal file
25
installLatex.sh
Normal file
|
@ -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! 🎉"
|
Reference in a new issue