From fcbcffc7823ea719a14162fe73c60bc14036c255 Mon Sep 17 00:00:00 2001 From: Amstel Date: Wed, 11 Jun 2025 14:18:15 +0800 Subject: 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". --- modules/session/Content.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/session') 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 -- cgit v1.2.3-freya