From 7dca0265d1977c4e3c855485e55399447a2b1dcd Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 17 Sep 2024 15:07:09 +0200 Subject: desktop-plasma: Add patch fixing notifications for net-irc/quassel --- ...component-name-to-quassel-when-creating-a.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 desktop-plasma/patches/net-irc/quassel-0.14.0/0001-qtui-Force-component-name-to-quassel-when-creating-a.patch (limited to 'desktop-plasma') 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?= +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(&KNotification::activated), + this, +-- +2.46.0 + -- cgit v1.2.3-2-gb3c3