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.
This commit is contained in:
Ivan Molodetskikh 2025-06-03 17:40:35 +03:00 committed by Supreeeme
parent 9e48795087
commit da2ecb5be8

View file

@ -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}");
}