session: fix logout button

And launcher logout action
This commit is contained in:
2 * r + 2 * t 2025-06-19 18:42:15 +10:00
parent 2c590cb9d9
commit f1ef177c9a
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ Singleton {
function onClicked(list: AppList): void {
list.visibilities.launcher = false;
Quickshell.execDetached(["sh", "-c", "(uwsm stop | grep -q 'Compositor is not running' && loginctl terminate-user $USER) || uwsm stop"]);
Quickshell.execDetached(["loginctl", "terminate-user", ""]);
}
},
Action {

View file

@ -23,7 +23,7 @@ Column {
id: logout
icon: "logout"
command: ["sh", "-c", "(uwsm stop | grep -q 'Compositor is not running' && loginctl terminate-user $USER) || uwsm stop"]
command: ["loginctl", "terminate-user", ""]
KeyNavigation.down: shutdown