diff --git a/scripts/geeqie-download-appimage.sh b/scripts/geeqie-download-appimage.sh index 9ac91dba..a719b826 100755 --- a/scripts/geeqie-download-appimage.sh +++ b/scripts/geeqie-download-appimage.sh @@ -330,4 +330,13 @@ then else ln --symbolic --force "Geeqie$minimal-latest-$architecture.AppImage" geeqie fi + + # Fix problems in linuxdeploy + # https://github.com/linuxdeploy/linuxdeploy/issues/303 + # https://github.com/linuxdeploy/linuxdeploy/issues/304 + # shellcheck disable=SC2016 + sed -i '/^this_dir/ c\this_dir=$(dirname "$(readlink -f "$BASH_SOURCE")")' "./Geeqie$minimal-latest-$architecture-AppImage/squashfs-root/AppRun" + + # shellcheck disable=SC2016 + sed -i '/^exec/ c\exec $(readlink -f $this_dir/AppRun.wrapped) "$@"' "./Geeqie$minimal-latest-$architecture-AppImage/squashfs-root/AppRun" fi