From: Ian Jackson Date: Tue, 22 Dec 2020 23:05:40 +0000 (+0000) Subject: wip Xvfb X-Git-Tag: otter-0.2.0~167 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d24fc3d1a1d0e8aaac7b3f113a63fd53fbbc04c3;p=otter.git wip Xvfb Signed-off-by: Ian Jackson --- 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")?;