display: String,
}
-const XSOCKETS : &str = "/tmp/.X11-unix";
-
#[throws(AE)]
fn reinvoke_via_bwrap(_opts: &Opts, current_exe: &str) -> Void {
println!("running bwrap");
--dev-bind / / \
--tmpfs /tmp \
--die-with-parent".split(" "))
- .args(&["--dir", XSOCKETS])
.arg(current_exe)
.arg("--no-bwrap")
.args(env::args_os().skip(1));
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")?;