From 39738d5abe9d5c60732c6783c88b058da973fdce Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Sun, 17 Nov 2024 16:44:37 +0300 Subject: [PATCH] v0.1.6 --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 8c1f9d4..d9d7f3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -276,6 +276,7 @@ fn main() { let is_elf = is_elf(&bin_path).unwrap_or(false); let is_hardlink = is_hardlink(&sharun, &bin_path).unwrap_or(false); if is_exe && (is_hardlink || !is_elf) { + add_to_env("PATH", bin_dir); let err = Command::new(&bin_path) .envs(env::vars()) .args(exec_args) @@ -338,6 +339,7 @@ fn main() { } let app = &format!("{bin_dir}/{appname}"); + add_to_env("PATH", bin_dir); if get_env_var("ARGV0").is_empty() { env::set_var("ARGV0", &arg0) }