AppRun 693 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. scriptdir=$(dirname $0)
  3. export PYTHONPATH="$scriptdir/lib/python3.10"
  4. export LD_LIBRARY_PATH=$scriptdir
  5. export QT_PLUGIN_PATH="$scriptdir/qt/plugins"
  6. export QML2_IMPORT_PATH="$scriptdir/qt/qml"
  7. export QT_QPA_FONTDIR=/usr/share/fonts
  8. export QT_QPA_PLATFORMTHEME=xdgdesktopportal
  9. export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
  10. # Use the openssl.cnf packaged in the AppImage
  11. export OPENSSL_CONF="$scriptdir/openssl.cnf"
  12. # If this variable is set on Zorin OS 16 Cura would crash
  13. # unset `QT_STYLE_OVERRIDE` as a precaution
  14. unset QT_STYLE_OVERRIDE
  15. BIN=`basename "$ARGV0" .AppImage`
  16. if [ -f $scriptdir/$BIN ]; then
  17. $scriptdir/$BIN "$@"
  18. else
  19. $scriptdir/UltiMaker-Cura "$@"
  20. fi;