mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-26 12:18:37 -06:00
Fix config file location when XDG folders not set
This commit is contained in:
parent
81095222ff
commit
e5c73b5cea
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ fn main() {
|
|||
let mut config_file = env::var("XDG_CONFIG_HOME").unwrap_or("$HOME".to_string());
|
||||
if config_file == String::from("$HOME") {
|
||||
config_file = env::var("$HOME").unwrap();
|
||||
config_file.push_str("/.config");
|
||||
}
|
||||
config_file.push_str("/movie_rename.conf");
|
||||
let mut config = load_str!(config_file.as_str()).lines();
|
||||
|
|
Loading…
Reference in a new issue