From e5c73b5cea40ded35a9c4ae13b8294ef0cfac4df Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Fri, 9 Dec 2022 02:30:24 -0600 Subject: [PATCH] Fix config file location when XDG folders not set --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 4eadd6e..0a7e0b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();