Hello community, here is the log from the commit of package cura for openSUSE:Factory checked in at 2020-02-22 19:08:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cura (Old) and /work/SRC/openSUSE:Factory/.cura.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cura" Sat Feb 22 19:08:04 2020 rev:8 rq:778101 version:4.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/cura/cura.changes 2020-01-03 17:36:38.071284889 +0100 +++ /work/SRC/openSUSE:Factory/.cura.new.26092/cura.changes 2020-02-22 19:08:19.098571327 +0100 @@ -1,0 +2,7 @@ +Thu Feb 20 01:06:00 UTC 2020 - Stefan BrĂ¼ns <stefan.bru...@rwth-aachen.de> + +- Avoid crash when qqc2-desktop-style is installed and used as + default style (typically by a KDE Plasma session): + * 0001-Avoid-crash-caused-by-KDE-qqc2-desktop-style.patch + +------------------------------------------------------------------- New: ---- 0001-Avoid-crash-caused-by-KDE-qqc2-desktop-style.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cura.spec ++++++ --- /var/tmp/diff_new_pack.BefD6k/_old 2020-02-22 19:08:21.590576291 +0100 +++ /var/tmp/diff_new_pack.BefD6k/_new 2020-02-22 19:08:21.594576298 +0100 @@ -1,7 +1,7 @@ # # spec file for package cura # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,7 @@ Summary: 3D printer control software License: LGPL-3.0-only Group: Hardware/Printing -URL: http://github.com/Ultimaker/Cura +URL: https://github.com/Ultimaker/Cura Source0: Cura-%{version}.tar.xz # PATCH-FIX-OPENSUSE disable-code-style-check.patch code style is no distro buisiness Patch1: disable-code-style-check.patch @@ -30,6 +30,8 @@ Patch2: fix-runtime.patch # PATCH-FIX-OPENSUSE fix-crash-on-start.patch Patch3: fix-crash-on-start.patch +# PATCH-FIX-OPENSUSE -- avoid bad UI layout and crash in preview +Patch4: 0001-Avoid-crash-caused-by-KDE-qqc2-desktop-style.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: libArcus3 @@ -85,6 +87,7 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build CFLAGS="%{optflags}" ++++++ 0001-Avoid-crash-caused-by-KDE-qqc2-desktop-style.patch ++++++ >From c11ed62920c472057295720cb53373b86f93eb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bru...@rwth-aachen.de> Date: Thu, 20 Feb 2020 02:05:19 +0100 Subject: [PATCH] Avoid crash caused by KDE qqc2-desktop-style https://bugs.kde.org/show_bug.cgi?id=417900 --- cura_app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura_app.py b/cura_app.py index 6149eeeb9..236dfb618 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() -- 2.25.0