Fix the priority of config locations and XDG_CONFIG_HOME location
This commit is contained in:
parent
ac36fe351d
commit
9faef04412
1 changed files with 4 additions and 4 deletions
|
@ -73,12 +73,12 @@ impl Config {
|
||||||
return home;
|
return home;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(home) = env::var("HOME") {
|
if let Ok(home) = env::var("XDG_CONFIG_HOME") {
|
||||||
return home + "/.config/mpv/";
|
return home + "/mpv/";
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Ok(home) = env::var("XDG_CONFIG_HOME") {
|
if let Ok(home) = env::var("HOME") {
|
||||||
return home + "/.mpv/";
|
return home + "/.config/mpv/";
|
||||||
}
|
}
|
||||||
|
|
||||||
"/etc/mpv/".to_owned()
|
"/etc/mpv/".to_owned()
|
||||||
|
|
Loading…
Reference in a new issue