Protect spaces (issue 55)

This commit is contained in:
Valentin Niess
2022-09-12 10:24:14 +02:00
parent df67460a7c
commit 6dfa764573

View File

@@ -2,16 +2,16 @@
# If running from an extracted image, then export ARGV0 and APPDIR
if [ -z "${APPIMAGE}" ]; then
export ARGV0=$0
export ARGV0="$0"
self="$(readlink -f -- $0)"
self=$(readlink -f -- "$0") # Protect spaces (issue 55)
here="${self%/*}"
tmp="${here%/*}"
export APPDIR="${tmp%/*}"
fi
# Resolve the calling command (preserving symbolic links).
export APPIMAGE_COMMAND="$(command -v -- $ARGV0)"
export APPIMAGE_COMMAND=$(command -v -- "$ARGV0")
{{ tcltk-env }}
{{ cert-file }}