Function xdg_basedir::dirs::get_data_dirs_from_env
[−]
[src]
pub fn get_data_dirs_from_env<'a, F>(get_env_var: &'a F) -> Vec<PathBuf> where F: Fn(&'a str) -> Option<OsString>
Get the default data directories given a closure that returns the the value of an environment variable. This method allows having a custom environment.
If $XDG_DATA_DIRS
is not set, it returns [/usr/local/share, /usr/share]
.