SIGN IN SIGN UP

hostinfo: improve detection of linux desktops (#20848)

Our desktop detection was using "wayland-1" as a search string for
detecting wayland desktops, but many desktops use other indexes for the
session. Additionally we did not detect mir or gamescope.

Add a new detection method that leans on systemd-logind (if available)
and fall back to using the existing method of looking for open unix
sockets, but add search strings and tail the index off of the wayland
session detection.

Fixes #20847

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
C
Claus Lensbøl committed
ffaa5a361f619ffbf9cbed5a4f96da90b96b2978
Parent: 5a1066f
Committed by GitHub <noreply@github.com> on 8/14/2026, 7:12:45 PM