From a7f8e294baaf3b70301edbf3ac8d4f5a3725afc0 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 6 Sep 2025 18:48:09 +0200 Subject: [PATCH] config_paths: remove rogue use of std::env::args() --- src/env/config_paths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/config_paths.rs b/src/env/config_paths.rs index fb664d665..0bff55bb3 100644 --- a/src/env/config_paths.rs +++ b/src/env/config_paths.rs @@ -16,7 +16,7 @@ pub struct ConfigPaths { } pub static CONFIG_PATHS: Lazy = Lazy::new(|| { - let argv0 = PathBuf::from(std::env::args().next().unwrap()); + let argv0 = PathBuf::from(std::env::args_os().next().unwrap()); let exec_path = get_executable_path(&argv0); FLOG!(config, format!("executable path: {}", exec_path.display()));