pub fn preferences_dir() -> Option<PathBuf>
Returns the path to the directory used for application settings.