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