Skip to main content

path

Function path 

Source
pub fn path(env: impl Fn(&str) -> Option<String>) -> Option<PathBuf>
Expand description

The file the settings are kept in, from the environment env (a lookup by name): SIM_APP_SETTINGS where set; else none while the screenshot hook runs or in a test, which must not read or write the user’s file; else the app’s folder in the user’s config folder (APPDATA on Windows, XDG_CONFIG_HOME or ~/.config elsewhere, ~/Library/Application Support on macOS). None where the environment names no such folder.