From e97e8599b9307c2a0b6a344a7a2f586fca5c9cd8 Mon Sep 17 00:00:00 2001 From: punix Date: Sun, 19 Nov 2023 15:13:34 +0100 Subject: [PATCH] installer erweitert --- installer1.0.5 | 19 ++++++++++++++++++- wg_on_start | 0 wg_on_start.desktop | 4 +++- 3 files changed, 21 insertions(+), 2 deletions(-) mode change 100755 => 100644 wg_on_start mode change 100644 => 100755 wg_on_start.desktop diff --git a/installer1.0.5 b/installer1.0.5 index 0fc42a6..8f6a266 100755 --- a/installer1.0.5 +++ b/installer1.0.5 @@ -14,7 +14,10 @@ ############################################################################################################ # abfrage ob benötigte pakete installiert sind, wenn nicht dann installiere automatisch die benötigten Pakete. - +if [ -d /home/"$USER"/.local/bin ] + then + mkdir -p /home/"$USER"/.local/bin +fi if grep -i 'mint\|debian\|ubuntu\|pop|' /etc/os-release > /dev/null 2>&1 then echo Wire-G wird installiert... @@ -64,6 +67,20 @@ else exit 0 fi +if [ -d /home/$USER/.config/autostart ] # for GNOME, XFCE, KDE, Budgie + then + cp wg_on_start.desktop /home/$USER/.config/autostart/ + chmod +x /home/$USER/.config/autostart/wg_on_start.desktop + +elif [ -d /home/$USER/.config/lxsession/Lubuntu/autostart ] # for LXDE + then + cp wg_on_start.desktop /home/$USER/.config/lxsession/Lubuntu/autostart/ + chmod +x /home/$USER/.config/lxsession/Lubuntu/autostart/wg_on_start.desktop + +else + echo Autostartdir not found! +fi + wait; sudo mkdir -p /usr/share/icons/Arch-Symbole ; sudo cp icons/wg-vpn.png /usr/share/icons/Arch-Symbole/ wait; diff --git a/wg_on_start b/wg_on_start old mode 100755 new mode 100644 diff --git a/wg_on_start.desktop b/wg_on_start.desktop old mode 100644 new mode 100755 index aa12680..35251e7 --- a/wg_on_start.desktop +++ b/wg_on_start.desktop @@ -1,4 +1,6 @@ [Desktop Entry] Type=Application Name=wg_on_start -Exec=/home/"$USER"/.config/bin/wg_on_start +Exec=/home/"$USER"/.local/bin/wg_on_start + +Name[de_DE]=wg_on_start