mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
appimage-run: don't chdir to the appimage
this allows to pass relative paths to appimages as argument fixes #108426
This commit is contained in:
parent
b28e5f3c9a
commit
f54f718871
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue