summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--desktop-plasma/patches/net-irc/quassel-0.14.0/0001-qtui-Force-component-name-to-quassel-when-creating-a.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/desktop-plasma/patches/net-irc/quassel-0.14.0/0001-qtui-Force-component-name-to-quassel-when-creating-a.patch b/desktop-plasma/patches/net-irc/quassel-0.14.0/0001-qtui-Force-component-name-to-quassel-when-creating-a.patch
new file mode 100644
index 0000000..28ca518
--- /dev/null
+++ b/desktop-plasma/patches/net-irc/quassel-0.14.0/0001-qtui-Force-component-name-to-quassel-when-creating-a.patch
@@ -0,0 +1,39 @@
+From 37f848eee536dfe8aebb9cc66744274383a31955 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Wolfgang=20M=C3=BCller?= <wolf@oriole.systems>
+Date: Tue, 17 Sep 2024 14:55:58 +0200
+Subject: [PATCH] qtui: Force component name to "quassel" when creating a
+ KNotification
+
+Commit 020c1634 (uisupport: fix application name for .desktop shell
+integration, 2023-04-18) broke notifications when using KNotification
+because the quassel.notifyrc file was never updated to reflect the
+change in application name.
+
+Ideally, when installing quasselclient, this file should be installed as
+"quasselclient.notifyrc". However, as quassel can also be set up as a
+monolithic program, there would need to be a bigger change to install
+logic. So, until we have confirmation from upstream on how to fix this,
+apply this hack which simply forces KNotification to use "quassel" as
+the component name.
+---
+ src/qtui/knotificationbackend.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/qtui/knotificationbackend.cpp b/src/qtui/knotificationbackend.cpp
+index 903446ac..8e8eb729 100644
+--- a/src/qtui/knotificationbackend.cpp
++++ b/src/qtui/knotificationbackend.cpp
+@@ -69,7 +69,9 @@ void KNotificationBackend::notify(const Notification& n)
+ QStringLiteral("dialog-information"),
+ QtUi::mainWindow(),
+ KNotification::RaiseWidgetOnActivation | KNotification::CloseWhenWidgetActivated
+- | KNotification::CloseOnTimeout);
++ | KNotification::CloseOnTimeout,
++ "quassel");
++
+ connect(notification,
+ selectOverload<uint>(&KNotification::activated),
+ this,
+--
+2.46.0
+