From 7f0aba91976d4502f34586b9785fe0d72b64ede8 Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Thu, 5 Dec 2024 14:53:06 -0500 Subject: [PATCH] try lowercase xvfb on mac --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index c8ee6f5..987d4a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2920,8 +2920,12 @@ mod tests { #[test] fn main() { // setup xephyr + #[cfg(target_os = "linux")] let mut cmd = Command::new("Xvfb").arg(":1").spawn().unwrap(); + #[cfg(not(target_os = "linux"))] + let mut cmd = Command::new("xvfb").arg(":1").spawn().unwrap(); + // wait for xephyr to start unsafe { while DPY.is_null() {