Function xdg::get_runtime_dir_from_env
[-] [+]
[src]
pub fn get_runtime_dir_from_env<'a, F>(get_env_var: &'a F) -> Option<PathBuf> where F: Fn(&'a str) -> Option<OsString>
Get $XDG_RUNTIME_DIR
if found in the environment.
This method allows having a custom environment.
Returns None if $XDG_RUNTIME_DIR
is not set, in which case it is up to the application
to fallback to a location that conforms to the specification.