Skip to content

Commit

Permalink
Fix problems with extracted AppImage
Browse files Browse the repository at this point in the history
Problems reported with linuxdeploy AppImages are:
linuxdeploy/linuxdeploy#303
linuxdeploy/linuxdeploy#304

This patch is a temporary workaround.
  • Loading branch information
caclark committed Jan 10, 2025
1 parent 9102763 commit 0b20b06
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/geeqie-download-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b20b06

Please sign in to comment.