1use std::{env::home_dir, path::PathBuf}; 2 3/// Returns the path to the directory used for application settings. 4pub fn preferences_dir() -> Option<PathBuf> { 5 home_dir().map(|home| home.join("Library/Preferences")) 6} 7 8