From 82ec36beb1b3df054c3d13fa1ecef94f83d9e001 Mon Sep 17 00:00:00 2001 From: nevaforget Date: Mon, 31 Aug 2026 14:04:08 +0200 Subject: [PATCH] fix(quickshell): quit niri on logout instead of terminating the session loginctl terminate-session kills the login session scope, which holds the niri-session script, but niri.service runs in the user manager and survives it -- along with the cleanup line the script would have run next. The compositor stayed on seat0, greetd returned to the greeter, and every login after that died immediately. Quitting niri stops niri.service, lets the script finish and takes graphical-session.target down with it. Co-Authored-By: Claude Opus 5 (1M context) --- defaults/xdg/quickshell/moonarch/PowerPopout.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/xdg/quickshell/moonarch/PowerPopout.qml b/defaults/xdg/quickshell/moonarch/PowerPopout.qml index 6626daa..66f09bc 100644 --- a/defaults/xdg/quickshell/moonarch/PowerPopout.qml +++ b/defaults/xdg/quickshell/moonarch/PowerPopout.qml @@ -60,7 +60,7 @@ PopoutPanel { "label": qsTr("Logout"), "icon": 0xf0343, // md-logout "confirm": true, - "cmd": ["loginctl", "terminate-session", "auto"] + "cmd": ["niri", "msg", "action", "quit", "--skip-confirmation"] }, { "name": "hibernate",