From 20170f0a7df5478119f8819a21ce378dc478b52b Mon Sep 17 00:00:00 2001 From: Ben Reaves Date: Wed, 5 Feb 2020 16:05:41 -0600 Subject: [PATCH] - Removed the explicit reference to bin bash in the service file, also removed the Environment variable to avoid issues for when Display is not 0. --- keyswap_service.sh | 2 +- system-config/keyswap.service | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/keyswap_service.sh b/keyswap_service.sh index 2d06c9b..efd2baf 100755 --- a/keyswap_service.sh +++ b/keyswap_service.sh @@ -4,7 +4,7 @@ systemctl --user stop keyswap >/dev/null 2>&1 systemctl --user disable keyswap >/dev/null 2>&1 systemctl --user stop keyswap.timer >/dev/null 2>&1 systemctl --user disable keyswap.timer >/dev/null 2>&1 -swapcmd="\/bin\/bash\ \/home\/`whoami`\/.config\/kinto\/xactive.sh" +swapcmd="\/home\/`whoami`\/.config\/kinto\/xactive.sh" mkdir -p ~/.config/systemd/user mkdir -p ~/.config/autostart cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service diff --git a/system-config/keyswap.service b/system-config/keyswap.service index 4654532..fa488f3 100755 --- a/system-config/keyswap.service +++ b/system-config/keyswap.service @@ -4,9 +4,6 @@ PartOf=graphical-session.target [Service] Type=simple -#User={username} -#Group={username} -Environment=DISPLAY=:0 Restart=always RestartSec=1 WorkingDirectory=/home/{username}/.config/kinto