You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			889 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			889 B
		
	
	
	
		
			Bash
		
	
#!/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='Pi-Apps' --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 && lxterminal --title="Uninstalling YAD" -e "sudo apt purge -y yad;echo -e '\nClosing in 5 seconds.';sleep 5"
 | 
						|
fi
 | 
						|
 | 
						|
echo "Removing menu button..."
 | 
						|
rm -f ${HOME}/.local/share/applications/pi-apps.desktop
 | 
						|
rm -f ${HOME}/Desktop/pi-apps.desktop
 | 
						|
 | 
						|
echo -e "\e[32mUninstallation complete.
 | 
						|
\e[97mIf Pi-apps 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/Botspot/pi-apps/issues/new\e[39m"
 | 
						|
 |