mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Modular platforms (#241)
This commit is contained in:
+2
-2
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user