Skip to content

Commit b63c683

Browse files
authored
unset ARGV0 after running hooks
1 parent 7ca137d commit b63c683

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

useful-tools/bin/AppRun-generic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ PATH="$CURRENTDIR/bin:$PATH"
1616
export PATH
1717
BIN="${ARGV0:-$0}"
1818
BIN="${BIN##*/}"
19-
unset ARGV0
2019

2120
# get name of main binary from the .desktop file
2221
_get_main_bin_name() {
@@ -60,6 +59,8 @@ for hook in "$CURRENTDIR"/bin/*.src.hook; do
6059
. "$hook"
6160
done
6261

62+
unset ARGV0
63+
6364
# If LD_DEBUG=libs is set outside the AppImage the output is not helpful
6465
# because it will include the libs of sh, grep, cat, etc from the hooks
6566
# with this var we can set LD_DEBUG=libs for the bundled application only

0 commit comments

Comments
 (0)