mirror of
https://github.com/tiffany352/rink-rs
synced 2024-11-10 13:44:15 +00:00
Use XDG_CONFIG_HOME on all unix except macos
This commit is contained in:
parent
20751cfa9a
commit
afa051658b
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ use std::time::Duration;
|
|||
|
||||
const DATA_FILE_URL: &'static str = "https://raw.githubusercontent.com/tiffany352/rink-rs/master/definitions.units";
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(all(target_family = "unix", not(target_os = "macos")))]
|
||||
pub fn config_dir() -> Result<PathBuf, String> {
|
||||
env::var("XDG_CONFIG_HOME")
|
||||
.map(From::from)
|
||||
|
|
Loading…
Reference in a new issue