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.
This commit is contained in:
Matt Coleman authored and GitHub committed 2025-03-02 23:28:29 -03:00
1 parent 68fe1b0e0d
commit 4395424fb0
1 file changed
+2 -2
+2 -2
View File
@@ -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