diff options
| author | Amstel <shinamusuteru.rdc@gmail.com> | 2025-06-11 14:18:15 +0800 |
|---|---|---|
| committer | Amstel <shinamusuteru.rdc@gmail.com> | 2025-06-11 14:18:15 +0800 |
| commit | fcbcffc7823ea719a14162fe73c60bc14036c255 (patch) | |
| tree | 4ed9da8e1defb294ee2e11b9744400ee4392c102 | |
| parent | session: fix logout for non-uwsm sessions (diff) | |
| download | caelestia-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".
| -rw-r--r-- | modules/session/Content.qml | 2 |
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 |