fix autostart
This commit is contained in:
parent
2541ed9d34
commit
3728e9cd7a
@ -1,11 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=wg_on_start
|
||||
Name[de_DE]=wgonstart.desktop
|
||||
Name[de_DE]=.wgonstart.desktop
|
||||
Exec=wg_on_start
|
||||
NoDisplay=true
|
||||
Terminal=false
|
||||
Comment=Start on Wire-G Notify with Tunnel
|
||||
Comment[de]=Start Wire-G Notify mit Tunnel
|
||||
|
||||
|
||||
GenericName[de_DE]=Wire-G Notify starter
|
@ -62,11 +62,11 @@ fi
|
||||
|
||||
if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie
|
||||
then
|
||||
cp wgonstart.desktop /home/$USER/.config/autostart/
|
||||
cp .wgonstart.desktop /home/$USER/.config/autostart/
|
||||
|
||||
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
|
||||
then
|
||||
cp wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/
|
||||
cp .wgonstart.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/
|
||||
|
||||
else
|
||||
echo Autostartdir not found!
|
||||
|
@ -51,7 +51,7 @@ ACTIVE=$(nmcli connection show --active | grep -iPo "(.*)(wireguard)" | sed 's/
|
||||
then
|
||||
mv /home/"$USER"/.config/autostart/.wgonstart.desktop mv /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 mv /home/"$USER"/.config/autostart/.wgonstart.desktop
|
||||
fi
|
||||
|
||||
elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE
|
||||
|
Loading…
x
Reference in New Issue
Block a user