session: fix logout button
And launcher logout action
This commit is contained in:
parent
2c590cb9d9
commit
f1ef177c9a
2 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ Singleton {
|
||||||
|
|
||||||
function onClicked(list: AppList): void {
|
function onClicked(list: AppList): void {
|
||||||
list.visibilities.launcher = false;
|
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 {
|
Action {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Column {
|
||||||
id: logout
|
id: logout
|
||||||
|
|
||||||
icon: "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
|
KeyNavigation.down: shutdown
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue