pub fn ensure_xauthority() -> Option<PathBuf>Expand description
Make sure XAUTHORITY points at a readable cookie, setting it from the session when it’s missing. Sets the process environment, so call it while the process is still single-threaded and before spawning anything that must inherit it: the host before CefInitialize (GPU and renderer processes), the launcher before the splash’s X probe (and the host it spawns later).