pub fn locations() -> Vec<PathBuf> {
    let mut dirs = vec![];

    if cfg!(target_os = "macos") {
        dirs.push(extra::config_dir().unwrap_or_default());
    } else {
        dirs.push(dirs::config_dir().unwrap_or_default());
    }

    if cfg!(target_os = "linux") {
        dirs.push(extra::usr_share_dir().unwrap_or_default());
    }

    #[cfg(target_os = "netbsd")]
    dirs.push(libmacchina::dirs::localbase_dir().unwrap_or_default());

    dirs.retain(|x| x.exists());
    dirs.iter()
        .map(|x| x.join(PKG_NAME).join("themes"))
        .collect()
}
/// Predefined locations where macchina should search.
Predefined locations where macchina should search.
Predefined locations where macchina should search .
pub fn locations() -> Vec<PathBuf> {
    let mut dirs = vec![];
    if cfg!(target_os = "macos") {
        dirs.push(extra::config_dir().unwrap_or_default());
    } else {
        dirs.push(dirs::config_dir().unwrap_or_default());
    }
    if cfg!(target_os = "linux") {
        dirs.push(extra::usr_share_dir().unwrap_or_default());
    }
    #[cfg(target_os = "netbsd")]
    dirs.push(libmacchina::dirs::localbase_dir().unwrap_or_default());
    dirs.retain(|x| x.exists());
    dirs.iter()
        .map(|x| x.join(PKG_NAME).join("themes"))
        .collect()
}
pub fn locations ( ) -> Vec < PathBuf > { let mut dirs = vec ! [ ] ; if cfg ! ( target_os " " ) { dirs . push ( extra :: config_dir ( ) . unwrap_or_default ( ) ) ; } else { dirs . push ( dirs :: config_dir ( ) . unwrap_or_default ( ) ) ; } if cfg ! ( target_os " " ) { dirs . push ( extra :: usr_share_dir ( ) . unwrap_or_default ( ) ) ; } # [ cfg ( target_os " " ) ] dirs . push ( libmacchina :: dirs :: localbase_dir ( ) . unwrap_or_default ( ) ) ; dirs . retain ( | x | x . exists ( ) ) ; dirs . iter ( ) . map ( | x | x . join ( PKG_NAME ) . join ( " " ) ) . collect ( ) }
Predefined locations where macchina should search.
Predefined locations where macchina should search .