37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
########################################################
 | 
						|
######################################################## 
 | 
						|
# Wire-G App for simple management a Wireguard Tunnel ##
 | 
						|
# Author: Désiré Werner Menrath                       ##
 | 
						|
# Email: polunga40@unity-mail.de                      ##
 | 
						|
# Translate German to English with LibreTranslate     ##
 | 
						|
# Translatefiles edit with Poedit                     ##
 | 
						|
# Use without warranty!                               ##
 | 
						|
######################################################## 
 | 
						|
########################################################
 | 
						|
 | 
						|
########################################################
 | 
						|
cd || exit
 | 
						|
rm -f /home/"$USER"/.icons/wg-active.png wg-stop.png wg-vpn.png wg-import.png wg-trash.png wg-info.png wg-vpn-info.png 2>&1
 | 
						|
wait;
 | 
						|
rm -r /home/"$USER"/.config/wg_nmcli 2>&1
 | 
						|
rm -r /home/"$USER"/.local/share/wg_nmcli 2>&1
 | 
						|
if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie
 | 
						|
    then 
 | 
						|
        rm /home/$USER/.config/autostart/wgonstart.desktop > /dev/null 2>&1
 | 
						|
 | 
						|
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
 | 
						|
    then
 | 
						|
        rm /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop > /dev/null 2>&1
 | 
						|
fi
 | 
						|
wait;
 | 
						|
sudo rm /usr/share/icons/Arch-Symbole/wg-vpn.png 2>&1 ; sudo rm /sbin/wire_g 2>&1 ; sudo rm /sbin/wg_stop 2>&1 ; sudo rm /sbin/wg_on_start 2>&1
 | 
						|
wait;
 | 
						|
sudo rm /usr/share/applications/Wire-G.desktop 2>&1 ; sudo rm /usr/share/locale/de/LC_MESSAGES/wire-g.mo 2>&1
 | 
						|
clear
 | 
						|
echo $"uninstall successfully!"
 | 
						|
echo
 | 
						|
read -n 1 -s -r -p $"To close the window press a button"
 | 
						|
clear
 | 
						|
 |