From cccfb8af87300826542b44176e8a97ab1c1d58fb Mon Sep 17 00:00:00 2001 From: Mariano Abad Date: Sat, 8 Aug 2026 15:48:09 -0300 Subject: [PATCH] log which socket answered when nothing named one The fallback was silent on success, so a host where it engaged looked identical to one where it was never reached. Debug level: it runs on a cache miss, not per frame. --- src/platform/linux.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 3d04d0639..343247136 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -515,7 +515,15 @@ fn probe_runtime_dir(dir: &Path) -> ResultType> { Ok(displays) if displays.is_empty() => { errs.push(format!("{}: no outputs yet", path.display())) } - Ok(displays) => return Ok(displays), + Ok(displays) => { + // Which socket answered, when nothing in the environment named one. + log::debug!( + "wayland: {} output(s) from {}, found by scanning", + displays.len(), + path.display() + ); + return Ok(displays); + } Err(err) => errs.push(format!("{}: {err}", path.display())), } }