Skip to content

Commit 0b20b06

Browse files
committed
Fix problems with extracted AppImage
Problems reported with linuxdeploy AppImages are: linuxdeploy/linuxdeploy#303 linuxdeploy/linuxdeploy#304 This patch is a temporary workaround.
1 parent 9102763 commit 0b20b06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/geeqie-download-appimage.sh

+9
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,13 @@ then
330330
else
331331
ln --symbolic --force "Geeqie$minimal-latest-$architecture.AppImage" geeqie
332332
fi
333+
334+
# Fix problems in linuxdeploy
335+
# https://github.com/linuxdeploy/linuxdeploy/issues/303
336+
# https://github.com/linuxdeploy/linuxdeploy/issues/304
337+
# shellcheck disable=SC2016
338+
sed -i '/^this_dir/ c\this_dir=$(dirname "$(readlink -f "$BASH_SOURCE")")' "./Geeqie$minimal-latest-$architecture-AppImage/squashfs-root/AppRun"
339+
340+
# shellcheck disable=SC2016
341+
sed -i '/^exec/ c\exec $(readlink -f $this_dir/AppRun.wrapped) "$@"' "./Geeqie$minimal-latest-$architecture-AppImage/squashfs-root/AppRun"
333342
fi

0 commit comments

Comments
 (0)