diff --git a/wg_on_start b/wg_on_start index 6158f3a..2e20476 100644 --- a/wg_on_start +++ b/wg_on_start @@ -49,9 +49,9 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/ then if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt then - mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop + mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/wgonstart.desktop else - mv /home/"$USER"/.config/autostart/wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop + mv /home/"$USER"/.config/autostart/wgonstart.desktop /home/"$USER"/.config/autostart/.wgonstart.desktop fi elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE diff --git a/wire_g b/wire_g index 65216c7..0327d82 100755 --- a/wire_g +++ b/wire_g @@ -59,9 +59,9 @@ wg_notify(){ then if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt then - mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/wgonstart.desktop + mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/wgonstart.desktop else - mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /home/"$USER"/.config/autostart/.wgonstart.desktop + mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/.wgonstart.desktop fi elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE