git.iko.soy/typeable/nixpkgs
on master help sign in
appimage-run: don't chdir to the appimage

this allows to pass relative paths to appimages as argument fixes #108426

commitf54f718871ed34cc8e6a71905349d34f00d6fd6d authorGuillaume Girol <symphorien+git@xlumurb.eu> dateMon 4 Jan 2021, 12:00 (6 years ago) parentb28e5f3
1 file changed+2−2
pkgs/build-support/appimage/appimage-exec.sh+2−2
pkgs/build-support/appimage/appimage-exec.sh+2−2
@@ -75,15 +75,15 @@ apprun() {
7575
7676wrap() {
7777
78− cd "$APPDIR" || exit
7978 # quite same in appimageTools
8079 export APPIMAGE_SILENT_INSTALL=1
8180
8281 if [ -n "$APPIMAGE_DEBUG_EXEC" ]; then
82+ cd "$APPDIR" || true
8383 exec "$APPIMAGE_DEBUG_EXEC"
8484 fi
8585
86− exec ./AppRun "$@"
86+ exec "$APPDIR/AppRun" "$@"
8787}
8888
8989usage() {