config_paths: remove rogue use of std::env::args()

This commit is contained in:
Johannes Altmanninger
2025-09-06 18:48:09 +02:00
parent 01ae00c653
commit a7f8e294ba

View File

@@ -16,7 +16,7 @@ pub struct ConfigPaths {
}
pub static CONFIG_PATHS: Lazy<ConfigPaths> = 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()));