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)); }