mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-02-18 10:22:16 -07:00
CURA-12054 It is now a fact that Cura doesn't work properly with native Qt/Wayland integration. However, on recent Ubuntu versions Wayland is now used by default. So we now force using the xcb platform unless otherwise specified, which should have no impact on older platforms but work better on new ones.
26 lines
720 B
Bash
26 lines
720 B
Bash
#!/bin/bash
|
|
|
|
scriptdir=$(dirname $0)
|
|
|
|
export PYTHONPATH="$scriptdir/lib/python3.10"
|
|
export LD_LIBRARY_PATH=$scriptdir
|
|
export QT_PLUGIN_PATH="$scriptdir/qt/plugins"
|
|
export QML2_IMPORT_PATH="$scriptdir/qt/qml"
|
|
export QT_QPA_FONTDIR=/usr/share/fonts
|
|
export QT_QPA_PLATFORMTHEME=xdgdesktopportal
|
|
export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
|
|
export QT_QPA_PLATFORM=xcb
|
|
|
|
# Use the openssl.cnf packaged in the AppImage
|
|
export OPENSSL_CONF="$scriptdir/openssl.cnf"
|
|
|
|
# If this variable is set on Zorin OS 16 Cura would crash
|
|
# unset `QT_STYLE_OVERRIDE` as a precaution
|
|
unset QT_STYLE_OVERRIDE
|
|
|
|
BIN=`basename "$ARGV0" .AppImage`
|
|
if [ -f $scriptdir/$BIN ]; then
|
|
$scriptdir/$BIN "$@"
|
|
else
|
|
$scriptdir/UltiMaker-Cura "$@"
|
|
fi;
|