Skip to content

Commit

Permalink
v0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Nov 17, 2024
1 parent fa3162c commit 39738d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 39738d5

Please sign in to comment.