session: end the logind session on logout when the compositor has no quit request (#3700)

This commit is contained in:
Kadir
2026-10-12 11:26:27 -04:00
committed by GitHub
parent 718ba6b118
commit 8cf89f17c0
+9 -1
View File
@@ -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));
}