Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefanBruens <stefan.bruens@rwth-aachen.de>2020-02-20 04:29:24 +0300
committerGitHub <noreply@github.com>2020-02-20 04:29:24 +0300
commit64a5349018d5fbf57abdefe3fc57b63403c1c2c5 (patch)
tree4956507958cbd97001bf6c050e49324f24782529 /cura_app.py
parent4cb239a97fd8b2b563f11080155c440273145270 (diff)
Avoid crash caused by KDE qqc2-desktop-style
Workaround/fix for #5488 Also see https://bugs.kde.org/show_bug.cgi?id=417900
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/cura_app.py b/cura_app.py
index 6149eeeb9a..3c2620bb38 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -207,5 +207,11 @@ if Platform.isLinux() and getattr(sys, "frozen", False):
import trimesh.exchange.load
os.environ["LD_LIBRARY_PATH"] = old_env
+# WORKAROUND: CURA-5488
+# When using the KDE qqc2-desktop-style, the UI layout is completely broken, and
+# even worse, it crashes when switching to the "Preview" pane.
+if Platform.isLinux():
+ os.environ["QT_QUICK_CONTROLS_STYLE"] = "material"
+
app = CuraApplication()
app.run()