From 3728e9cd7a72b5aafa89989e11408a298a568947 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 19 Nov 2023 20:53:27 +0100 Subject: [PATCH] fix autostart --- wgonstart.desktop => .wgonstart.desktop | 5 ++--- installer1.0.5 | 4 ++-- wg_on_start | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) rename wgonstart.desktop => .wgonstart.desktop (71%) diff --git a/wgonstart.desktop b/.wgonstart.desktop similarity index 71% rename from wgonstart.desktop rename to .wgonstart.desktop index 7a711b2..57166e1 100644 --- a/wgonstart.desktop +++ b/.wgonstart.desktop @@ -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 diff --git a/installer1.0.5 b/installer1.0.5 index 20f691f..690582d 100755 --- a/installer1.0.5 +++ b/installer1.0.5 @@ -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! diff --git a/wg_on_start b/wg_on_start index e853786..6158f3a 100644 --- a/wg_on_start +++ b/wg_on_start @@ -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