From 1d4fd2fb34d0a731308f276924992e6b879c0fd7 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 8 Jan 2025 11:06:36 -0800 Subject: [PATCH] hostinfo: improve accuracy of Linux desktop detection heuristic DBus doesn't imply desktop. Updates #1708 Change-Id: Id43205aafb293533119256adf372a7d762aa7aca Signed-off-by: Brad Fitzpatrick --- hostinfo/hostinfo.go | 1 - 1 file changed, 1 deletion(-) diff --git a/hostinfo/hostinfo.go b/hostinfo/hostinfo.go index 3d4216922..89968e1e6 100644 --- a/hostinfo/hostinfo.go +++ b/hostinfo/hostinfo.go @@ -233,7 +233,6 @@ func desktop() (ret opt.Bool) { seenDesktop := false for lr := range lineiter.File("/proc/net/unix") { line, _ := lr.Value() - seenDesktop = seenDesktop || mem.Contains(mem.B(line), mem.S(" @/tmp/dbus-")) seenDesktop = seenDesktop || mem.Contains(mem.B(line), mem.S(".X11-unix")) seenDesktop = seenDesktop || mem.Contains(mem.B(line), mem.S("/wayland-1")) }