session: fix logout for non-uwsm sessions
This commit is contained in:
parent
c63f1b7e00
commit
ea4d3f26ef
2 changed files with 3 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import "root:/widgets"
|
import "root:/widgets"
|
||||||
import "root:/services"
|
import "root:/services"
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ Column {
|
||||||
id: logout
|
id: logout
|
||||||
|
|
||||||
icon: "logout"
|
icon: "logout"
|
||||||
command: ["uwsm", "stop"]
|
command: ["sh", "-c", "uwsm stop || loginctl terminate-session $XDG_SESSION_ID"]
|
||||||
|
|
||||||
KeyNavigation.down: shutdown
|
KeyNavigation.down: shutdown
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue