From 7da00975797449e4fd3d5049c62d47bc956e1cc2 Mon Sep 17 00:00:00 2001 From: mxmlnkn Date: Wed, 30 Jul 2025 10:10:05 +0200 Subject: [PATCH] First call readlink on argument 0 and then dirname Fixes support for being executed via a symbolic link. --- resources/AppRun.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/AppRun.sh b/resources/AppRun.sh index fe4424a..4bc2d84 100644 --- a/resources/AppRun.sh +++ b/resources/AppRun.sh @@ -2,7 +2,7 @@ set -e -this_dir="$(readlink -f "$(dirname "$0")")" +this_dir="$(dirname -- "$(readlink -f -- "$0")")" # make appimagetool prefer the bundled mksquashfs export PATH="$this_dir"/usr/bin:"$PATH"