session: fix logout for non-uwsm sessions

This commit is contained in:
2 * r + 2 * t 2025-06-09 20:06:09 +10:00
parent c63f1b7e00
commit ea4d3f26ef
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
pragma ComponentBehavior: Bound
import "root:/widgets"
import "root:/services"
import "root:/config"

View file

@ -23,7 +23,7 @@ Column {
id: logout
icon: "logout"
command: ["uwsm", "stop"]
command: ["sh", "-c", "uwsm stop || loginctl terminate-session $XDG_SESSION_ID"]
KeyNavigation.down: shutdown