Function preferences

Source
pub fn preferences() -> Option<PathBuf>
Expand description

The location of the Alfred.alfredpreferences directory.

If a user has synced their settings, this will allow you to find out where their settings are.

§Examples

let prefs = env::preferences().unwrap();
println!("Alfred Preferences:\n{prefs:?}");
// Alfred Preferences:
// /Users/John/Library/Application Support/Alfred/Alfred.alfredpreferences