From 9bc771bcca2bab9667a43876a8db8e2514a6eeb8 Mon Sep 17 00:00:00 2001 From: Gabriel Brown Date: Wed, 19 Aug 2026 07:41:27 -0400 Subject: [PATCH] Fix a false RustDesk health warning The check queried `systemctl --user is-active rustdesk.service`, but RustDesk ships an enabled *system* service (root-owned, spawns the session --server/--tray on its own -- see autostart.lua's comment on why Panama doesn't start it a second time). No user-scope unit by that name exists, so the check always reported inactive regardless of whether RustDesk was actually running. Dropped --user; confirmed live that a plain `systemctl is-active` correctly reads the system unit without needing root, and the doctor now reports "Service is active." Claude-Session: https://claude.ai/code/session_01E6TJUAh41HaP25MVHWkhRZ --- config/dot/quickshell/scripts/panama-doctor | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/dot/quickshell/scripts/panama-doctor b/config/dot/quickshell/scripts/panama-doctor index f4d4eed..ca556ad 100755 --- a/config/dot/quickshell/scripts/panama-doctor +++ b/config/dot/quickshell/scripts/panama-doctor @@ -125,7 +125,13 @@ SYSTEMCTL_COMMANDS = { "vicinae": ("systemctl", "--user", "is-active", "--quiet", "vicinae.service"), "pipewire": ("systemctl", "--user", "is-active", "--quiet", "pipewire.service"), "nextcloud": ("systemctl", "--user", "is-active", "--quiet", "nextcloud.service"), - "rustdesk": ("systemctl", "--user", "is-active", "--quiet", "rustdesk.service"), + # System-scope, not --user: RustDesk ships an enabled *system* service + # (`rustdesk --service`, root-owned) that spawns the session --server and + # --tray on its own -- see autostart.lua's comment on why Panama doesn't + # start it a second time. Querying --user here always reports inactive, + # since no such user-scope unit exists, regardless of whether the real + # service is running. + "rustdesk": ("systemctl", "is-active", "--quiet", "rustdesk.service"), } REPAIR_COMMANDS = MappingProxyType({ "desktop.hyprpaper": ("systemctl", "--user", "restart", "hyprpaper.service"),