mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
config_paths: remove rogue use of std::env::args()
This commit is contained in:
2
src/env/config_paths.rs
vendored
2
src/env/config_paths.rs
vendored
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user