Modular platforms (#241)

This commit is contained in:
Philip Kristoffersen
2022-10-02 21:13:31 +02:00
committed by GitHub
parent d6773c7adb
commit dcbf77b610
94 changed files with 2188 additions and 1750 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ pub fn get_config_folder() -> PathBuf {
let home = std::env::var("HOME");
match (config_home, home) {
(Ok(p), _) => Path::new(&p).to_path_buf(),
(Err(_), Ok(home)) => Path::new(&home).join(".config").join("boilr").to_path_buf(),
(Err(_), Ok(home)) => Path::new(&home).join(".config").join("boilr"),
_ => Path::new("").to_path_buf(),
}
}
@@ -49,5 +49,5 @@ pub fn get_backups_flder() -> PathBuf {
#[cfg(target_family = "unix")]
pub fn get_boilr_links_path() -> PathBuf {
get_config_folder().join("links").to_path_buf()
get_config_folder().join("links")
}