forked from Pi-Apps-Recreates/pi-apps-x86
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall
executable file
·29 lines (22 loc) · 1.09 KB
/
uninstall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
function error {
echo -e "\e[91m$1\e[39m"
exit 1
}
DIRECTORY="$(readlink -f "$(dirname "$0")")"
if [ -z "$(dpkg-query -W --showformat='${Status}\n' yad 2>/dev/null | grep "install ok installed")" ];then
zenity --title='Nitely' --window-icon="${DIRECTORY}/icons/logo.png" \
--list --text="Do you want to uninstall YAD?" \
--ok-label=Yes --cancel-label=No \
--column=foo --hide-header 2>/dev/null && "${DIRECTORY}/etc/terminal-run" "sudo apt purge -y yad;echo -e '\nClosing in 5 seconds.';sleep 5" "Uninstalling YAD"
fi
echo "Removing menu buttons..."
rm -f ~/.local/share/applications/nitely-x86.desktop
rm -f ~/.local/share/applications/nitely-x86-settings.desktop
rm -f ~/.config/autostart/nitely-x86-updater.desktop
rm -f ~/Desktop/nitely-x86.desktop
echo "Removing terminal command..."
sudo rm -f /usr/local/bin/pnitely-x86
echo -e "\e[32mUninstallation complete.\e[97m Only $HOME/nitely-x86 still remains.
If Nitely didn"\'"t work for you, \e[4m\e[21m\e[5mPLEASE\e[0m\e[97m consider submitting a \e[1mbug report\e[0m!
--> \e[96mhttps://github.com/C-EO/nitely/issues/new\e[39m"