mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-17 00:34:01 -04:00
session: end the logind session on logout when the compositor has no quit request (#3700)
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user