From da2ecb5be816de35e2efe23a408a1c49fe8b11ba Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 3 Jun 2025 17:40:35 +0300 Subject: [PATCH] Add --test-listenfd-support flag Just exits with 0. Useful to test whether xwayland-satellite supports -listenfd before setting up the X11 sockets and stuff on the compositor side. Versions before this commit panic and exit with nonzero code. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index a570b0a..51de995 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,6 +52,8 @@ fn parse_args() -> RealData { data.listenfds.push(fd); i += 2; + } else if arg == "--test-listenfd-support" { + std::process::exit(0); } else { panic!("Unrecognized argument: {arg}"); }