From d24fc3d1a1d0e8aaac7b3f113a63fd53fbbc04c3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 22 Dec 2020 23:05:40 +0000 Subject: [PATCH] wip Xvfb Signed-off-by: Ian Jackson --- wdriver.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wdriver.rs b/wdriver.rs index 93947755..fce57e2c 100644 --- a/wdriver.rs +++ b/wdriver.rs @@ -33,8 +33,6 @@ pub struct Setup { display: String, } -const XSOCKETS : &str = "/tmp/.X11-unix"; - #[throws(AE)] fn reinvoke_via_bwrap(_opts: &Opts, current_exe: &str) -> Void { println!("running bwrap"); @@ -45,7 +43,6 @@ fn reinvoke_via_bwrap(_opts: &Opts, current_exe: &str) -> Void { --dev-bind / / \ --tmpfs /tmp \ --die-with-parent".split(" ")) - .args(&["--dir", XSOCKETS]) .arg(current_exe) .arg("--no-bwrap") .args(env::args_os().skip(1)); @@ -113,7 +110,12 @@ fn prepare_xserver1() -> impl FnOnce() -> Result { let mut xcmd = Command::new("Xvfb"); xcmd - .args("-displayfd 1 :12".split(' ')) + .args("-nolisten unix \ + -nolisten local \ + -listen inet6 \ + -noreset \ + -displayfd 1".split(' ')) + .arg(format!(":{}", DISPLAY)) .stdout(Stdio::piped()); let mut child = xcmd.spawn() .context("spawn Xvfb")?; -- 2.30.2