We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$XDG_CONFIG_HOME
$HOME/.config
1 parent bdb4932 commit c68637bCopy full SHA for c68637b
2 files changed
apps/plumeimpactor/src/defaults.rs
@@ -61,7 +61,9 @@ pub fn get_data_path() -> PathBuf {
61
let base = if cfg!(windows) {
62
env::var("APPDATA").unwrap()
63
} else {
64
- env::var("HOME").unwrap() + "/.config"
+ env::var("XDG_CONFIG_HOME").unwrap_or_else(|_| {
65
+ env::var("HOME").unwrap() + "/.config"
66
+ })
67
};
68
69
let dir = Path::new(&base).join("PlumeImpactor");
apps/plumesign/src/main.rs
@@ -28,7 +28,9 @@ pub fn get_data_path() -> PathBuf {
28
29
30
31
32
33
34
35
36
0 commit comments