appimage: add ARGV0 check in AppRun

This commit is contained in:
Samuel 2025-04-05 03:37:39 -04:00 committed by GitHub
parent af2479da8d
commit 85b26ee61d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -672,7 +672,9 @@ appimage() {
export PATH="$(dirname $0)/usr/bin:${PATH}"
export LD_LIBRARY_PATH="$(dirname $0)/usr/lib:${LD_LIBRARY_PATH}"
if [ "$1" == "cli" ]; then
if command -v "${ARGV0#./}" >/dev/null 2>&1; then
exec "${ARGV0#./}" "$@"
elif [ "$1" == "cli" ]; then
shift
exec keepassxc-cli "$@"
elif [ "$1" == "proxy" ]; then