From a5585f047c2779eab7cce5f0e144bb5d0dec6004 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 10 Aug 2022 17:54:34 +1000 Subject: [PATCH] AppImage: Fix launching relative paths --- scripts/make-appimage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/make-appimage.sh b/scripts/make-appimage.sh index 4875ae653..a244187b7 100755 --- a/scripts/make-appimage.sh +++ b/scripts/make-appimage.sh @@ -292,8 +292,8 @@ echo "Creating AppRun..." cat > "$OUTDIR/AppRun" << EOF #!/bin/sh -cd "\$(dirname "\$0")" -exec ./usr/bin/$BINARY "\$@" +APPDIR=\$(dirname "\$0") +exec "\$APPDIR/usr/bin/$BINARY" "\$@" EOF chmod +x "$OUTDIR/AppRun"