From 8cf89f17c0e0507cd8271cdda87797783cd64adb Mon Sep 17 00:00:00 2001 From: Kadir <104317272+KadirJeager@users.noreply.github.com> Date: Mon, 12 Oct 2026 18:26:27 +0300 Subject: [PATCH] session: end the logind session on logout when the compositor has no quit request (#3700) --- quickshell/Services/SessionService.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/quickshell/Services/SessionService.qml b/quickshell/Services/SessionService.qml index 1697630dd..088a821f6 100644 --- a/quickshell/Services/SessionService.qml +++ b/quickshell/Services/SessionService.qml @@ -444,7 +444,15 @@ printf 'uwsm=%s\nelogind=%s\nloginctl=%s\nsystemctl=%s\nusermgr=%s\nhibernate=%s return; } - HyprlandService.exit(); + if (CompositorService.isHyprland) { + HyprlandService.exit(); + return; + } + + DMSService.sendRequest("loginctl.terminate", null, response => { + if (response.error) + log.warn("Failed to terminate session:", response.error); + }); } else { Quickshell.execDetached(customActionCommand(SettingsData.customPowerActionLogout)); }