From f54f718871ed34cc8e6a71905349d34f00d6fd6d Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Mon, 4 Jan 2021 12:00:00 +0000 Subject: appimage-run: don't chdir to the appimage this allows to pass relative paths to appimages as argument fixes #108426 --- pkgs/build-support/appimage/appimage-exec.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support/appimage') diff --git a/pkgs/build-support/appimage/appimage-exec.sh b/pkgs/build-support/appimage/appimage-exec.sh index 7986c589667..4ff6802e645 100755 --- a/pkgs/build-support/appimage/appimage-exec.sh +++ b/pkgs/build-support/appimage/appimage-exec.sh @@ -75,15 +75,15 @@ apprun() { wrap() { - cd "$APPDIR" || exit # quite same in appimageTools export APPIMAGE_SILENT_INSTALL=1 if [ -n "$APPIMAGE_DEBUG_EXEC" ]; then + cd "$APPDIR" || true exec "$APPIMAGE_DEBUG_EXEC" fi - exec ./AppRun "$@" + exec "$APPDIR/AppRun" "$@" } usage() { -- cgit 1.4.1