Fixed default directory when running with no root permissions

This commit is contained in:
cyber-sushi 2024-05-09 16:55:23 +02:00
parent 6373bbecbc
commit 9dba3c564f

View file

@ -32,7 +32,7 @@ async fn main() {
_ => user_home, _ => user_home,
} }
}, },
Ok(user_home) => format!("/home/{}", user_home), Ok(user_home) => user_home,
_ => "/root".to_string(), _ => "/root".to_string(),
}; };
let default_config_path = format!("{}/.config/makima", user_home); let default_config_path = format!("{}/.config/makima", user_home);