Running status.sh in the first seconds after a reboot (before /run/user/$UID exists / the lingering user manager is reachable), or as the wrong user without a session bus, made every `systemctl --user` call fail with "Failed to connect to bus". The Service check read that the same as "unit doesn't exist" and printed a scary "no sunshine user unit found" for a perfectly healthy, auto-starting install. Probe the user manager once up front; if the bus is unreachable, say so explicitly (and point at 'ss -tulnp | grep 47990' to verify Sunshine independently) instead of cascading into false negatives. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 KiB
Executable File
17 KiB
Executable File