summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAmstel <shinamusuteru.rdc@gmail.com>2025-06-11 14:18:15 +0800
committerAmstel <shinamusuteru.rdc@gmail.com>2025-06-11 14:18:15 +0800
commitfcbcffc7823ea719a14162fe73c60bc14036c255 (patch)
tree4ed9da8e1defb294ee2e11b9744400ee4392c102 /modules
parentsession: fix logout for non-uwsm sessions (diff)
downloadcaelestia-shell-fcbcffc7823ea719a14162fe73c60bc14036c255.tar.gz
caelestia-shell-fcbcffc7823ea719a14162fe73c60bc14036c255.tar.bz2
caelestia-shell-fcbcffc7823ea719a14162fe73c60bc14036c255.zip
Fixed Logout Function
When Running "uwsm stop" it replies: > Stopping compositor... > Compositor is not running. so the "or" operator would not work since the "uwsm stop" command didn't return as "FALSE".
Diffstat (limited to 'modules')
-rw-r--r--modules/session/Content.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/session/Content.qml b/modules/session/Content.qml
index d6cacd6..7c69bbd 100644
--- a/modules/session/Content.qml
+++ b/modules/session/Content.qml
@@ -23,7 +23,7 @@ Column {
id: logout
icon: "logout"
- command: ["sh", "-c", "uwsm stop || loginctl terminate-session $XDG_SESSION_ID"]
+ command: ["sh", "-c", "(uwsm stop | grep -q 'Compositor is not running' && loginctl terminate-user $USER) || uwsm stop"]
KeyNavigation.down: shutdown