wg_nmcli Ordner hinzugefügt Pfade angepasst

This commit is contained in:
2023-11-20 12:28:28 +01:00
parent 6fe7e7c989
commit 92ae78f5a8
4 changed files with 26 additions and 17 deletions

8
wire_g
View File

@@ -59,18 +59,18 @@ wg_notify(){
then
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
then
mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/wgonstart.desktop
cp /home/"$USER"/.local/share/wg_nmcli/wgonstart.desktop /home/"$USER"/.config/autostart/
else
mv /home/"$USER"/.config/autostart/.wgonstart.desktop /home/"$USER"/.config/autostart/.wgonstart.desktop
rm /home/"$USER"/.config/autostart/wgonstart.desktop
fi
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
then
if grep 'TRUE TRUE\|TRUE FALSE' ${WG_WDIR}about.txt
then
mv /home/$USER/.config/lxsession/Lubuntu/autostart/.wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop
cp /home/"$USER"/.local/share/wg_nmcli/wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/
else
mv /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/.wgonstart.desktop
rm /home/$USER/.config/lxsession/Lubuntu/autostart/wgonstart.desktop
fi
fi