https://mail.kde.org/pipermail/distributions/2026-May/001693.html
https://invent.kde.org/plasma/drkonqi/-/commit/8f02653eb1cd3b980f49b629f8907c96ac44874b

From 8f02653eb1cd3b980f49b629f8907c96ac44874b Mon Sep 17 00:00:00 2001
From: Harald Sitter <sitter@kde.org>
Date: Fri, 22 May 2026 11:18:26 +0200
Subject: [PATCH] workaround crash inside knotification/qt

knotification does html stripping which internally required qtgui.
temporarily promote it to gui type so it doesn't crash.

should be undone once we depend on qt 6.12.

also a more robust html stripping would be appreciated.

BUG: 517353


(cherry picked from commit f1552403d5a1e3bd89fff9fa240abee9a8d51979)

Co-authored-by: Harald Sitter <sitter@kde.org>
---
 CMakeLists.txt                 | 4 ++++
 src/coredump/launcher/main.cpp | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb0e89801..2d3059970 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,10 @@ set(PROJECT_VERSION "6.6.5")
 set(QT_MIN_VERSION "6.10.0")
 set(KF6_MIN_VERSION "6.22.0")
 
+if(${QT_MIN_VERSION} VERSION_GREATER_EQUAL "6.12.0")
+    message(FATAL_ERROR "Turn drkonqi-coredump-launcher into a qcoreapplication! https://bugs.kde.org/show_bug.cgi?id=517353")
+endif()
+
 set(CMAKE_CXX_STANDARD 20)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
diff --git a/src/coredump/launcher/main.cpp b/src/coredump/launcher/main.cpp
index 14f00f25d..2e3887cab 100644
--- a/src/coredump/launcher/main.cpp
+++ b/src/coredump/launcher/main.cpp
@@ -9,10 +9,10 @@
 
 #include <chrono>
 
-#include <QCoreApplication>
 #include <QDebug>
 #include <QDir>
 #include <QFile>
+#include <QGuiApplication>
 #include <QJsonDocument>
 #include <QLibraryInfo>
 #include <QProcess>
@@ -245,7 +245,7 @@ static void onNewDump(const Coredump &dump)
 
 int main(int argc, char **argv)
 {
-    QCoreApplication app(argc, argv);
+    QGuiApplication app(argc, argv);
     app.setApplicationName(QStringLiteral("drkonqi-coredump-launcher"));
     app.setOrganizationDomain(QStringLiteral("kde.org"));
 
-- 
GitLab
