AppRun 791 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  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_XKB_CONFIG_ROOT=/usr/share/X11/xkb
  9. # Platform theme depends on the current desktop environment.
  10. case "${XDG_CURRENT_DESKTOP}" in
  11. *GNOME*|*gnome*|*XFCE*)
  12. export QT_QPA_PLATFORMTHEME=gtk2
  13. ;;
  14. *)
  15. export QT_QPA_PLATFORMTHEME=xdgdesktopportal
  16. ;;
  17. esac
  18. # Use the openssl.cnf packaged in the AppImage
  19. export OPENSSL_CONF="$scriptdir/openssl.cnf"
  20. $scriptdir/Ultimaker-Cura "$@"
  21. # If this variable is set on Zorin OS 16 Cura would crash
  22. # unset `QT_STYLE_OVERRIDE` as a precaution
  23. unset QT_STYLE_OVERRIDE