From 4395424fb09c43cdbfbf674140d7221f61b43d68 Mon Sep 17 00:00:00 2001 From: Matt Coleman Date: Sun, 2 Mar 2025 21:28:29 -0500 Subject: [PATCH] fix(systemd): enable stopping with `systemctl stop` (#1557) Prior to this commit, `systemctl stop KlipperScreen` would result in only KlipperScreen-start.sh being killed, leaving the graphical session running as an abandoned process. Launching the GUI process with `exec` lets systemd manage it. --- scripts/KlipperScreen-start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/KlipperScreen-start.sh b/scripts/KlipperScreen-start.sh index 1626fbc4..6b197737 100755 --- a/scripts/KlipperScreen-start.sh +++ b/scripts/KlipperScreen-start.sh @@ -13,9 +13,9 @@ fi if [[ "$BACKEND" =~ ^[wW]$ ]]; then echo "Running KlipperScreen on Cage" - /usr/bin/cage -ds $KS_XCLIENT + exec /usr/bin/cage -ds $KS_XCLIENT else echo "Running KlipperScreen on X in display :0 by default" - /usr/bin/xinit $KS_XCLIENT + exec /usr/bin/xinit $KS_XCLIENT fi