Browse Source

Use ARGV0 to invoke other binaries inside AppImage

sree 2 years ago
parent
commit
b118a1b1b5
1 changed files with 6 additions and 1 deletions
  1. 6 1
      packaging/AppImage/AppRun

+ 6 - 1
packaging/AppImage/AppRun

@@ -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;