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;
|
||||
}
|
||||
|
||||
if let Ok(home) = env::var("HOME") {
|
||||
return home + "/.config/mpv/";
|
||||
if let Ok(home) = env::var("XDG_CONFIG_HOME") {
|
||||
return home + "/mpv/";
|
||||
}
|
||||
|
||||
if let Ok(home) = env::var("XDG_CONFIG_HOME") {
|
||||
return home + "/.mpv/";
|
||||
if let Ok(home) = env::var("HOME") {
|
||||
return home + "/.config/mpv/";
|
||||
}
|
||||
|
||||
"/etc/mpv/".to_owned()
|
||||
|
|
Loading…
Reference in a new issue