Merge pull request #13630 from sree314/main

Use ARGV0 to select the executable to execute from AppRun. Intended to run CuraEngine
This commit is contained in:
Joey de l'Arago 2023-01-04 15:19:37 +01:00 committed by GitHub
commit 2e7943cf9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,4 +17,9 @@ export OPENSSL_CONF="$scriptdir/openssl.cnf"
# unset `QT_STYLE_OVERRIDE` as a precaution
unset QT_STYLE_OVERRIDE
$scriptdir/UltiMaker-Cura "$@"
BIN=`basename "$ARGV0" .AppImage`
if [ -f $scriptdir/$BIN ]; then
$scriptdir/$BIN "$@"
else
$scriptdir/UltiMaker-Cura "$@"
fi;