pub fn with_xdg_shell<R, F: FnOnce(&XdgShell) -> R>(f: F) -> Option<R>
Execute a closure with read access to the XDG shell.