Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kf6-knotifications for openSUSE:Factory checked in at 2026-11-16 09:06:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kf6-knotifications (Old) and /work/SRC/openSUSE:Factory/.kf6-knotifications.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kf6-knotifications" Mon Nov 16 09:06:57 2026 rev:33 rq:1397436 version:6.32.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kf6-knotifications/kf6-knotifications.changes 2026-10-11 15:18:22.556380827 +0200 +++ /work/SRC/openSUSE:Factory/.kf6-knotifications.new.1251/kf6-knotifications.changes 2026-11-16 09:10:12.998191371 +0100 @@ -1,0 +2,12 @@ +Sun Nov 8 10:36:21 UTC 2026 - Christophe Marin <[email protected]> + +- Update to 6.32.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/6/6.32.0 +- Changes since 6.31.0: + * Update dependency version to 6.32.0 + * Add support for receiving an activation token with the portal backend + * Update version to 6.32.0 + +------------------------------------------------------------------- Old: ---- knotifications-6.31.0.tar.xz knotifications-6.31.0.tar.xz.sig New: ---- knotifications-6.32.0.tar.xz knotifications-6.32.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kf6-knotifications.spec ++++++ --- /var/tmp/diff_new_pack.C3odk0/_old 2026-11-16 09:10:13.728221978 +0100 +++ /var/tmp/diff_new_pack.C3odk0/_new 2026-11-16 09:10:13.730222061 +0100 @@ -16,7 +16,7 @@ # -%define qt6_version 6.9.0 +%define qt6_version 6.10.0 %define rname knotifications @@ -28,11 +28,11 @@ %define mypython_sitearch %{expand:%%%{mypython}_sitearch} %endif -# Full KF6 version (e.g. 6.31.0) +# Full KF6 version (e.g. 6.32.0) %{!?_kf6_version: %global _kf6_version %{version}} %bcond_without released Name: kf6-knotifications -Version: 6.31.0 +Version: 6.32.0 Release: 0 Summary: KDE Desktop notifications License: LGPL-2.1-or-later ++++++ knotifications-6.31.0.tar.xz -> knotifications-6.32.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.31.0/CMakeLists.txt new/knotifications-6.32.0/CMakeLists.txt --- old/knotifications-6.31.0/CMakeLists.txt 2026-10-02 15:20:56.000000000 +0200 +++ new/knotifications-6.32.0/CMakeLists.txt 2026-11-07 16:26:51.000000000 +0100 @@ -1,12 +1,12 @@ cmake_minimum_required(VERSION 3.30) -set(KF_VERSION "6.31.0") # handled by release scripts -set(KF_DEP_VERSION "6.31.0") # handled by release scripts +set(KF_VERSION "6.32.0") # handled by release scripts +set(KF_DEP_VERSION "6.32.0") # handled by release scripts project(KNotifications VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 6.31.0 NO_MODULE) +find_package(ECM 6.32.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/knotifications-6.31.0/src/notifybyportal.cpp new/knotifications-6.32.0/src/notifybyportal.cpp --- old/knotifications-6.31.0/src/notifybyportal.cpp 2026-10-02 15:20:56.000000000 +0200 +++ new/knotifications-6.32.0/src/notifybyportal.cpp 2026-11-07 16:26:51.000000000 +0100 @@ -15,6 +15,7 @@ #include "notifybyaudio.h" #include <QBuffer> +#include <QDBusArgument> #include <QDBusConnection> #include <QDBusConnectionInterface> #include <QDBusError> @@ -207,10 +208,23 @@ } } -void NotifyByPortal::onPortalNotificationActionInvoked(const QString &id, const QString &action, const QVariantList ¶meter) +static QString activationToken(const QVariantList ¶meter) { - Q_UNUSED(parameter); + for (const QVariant &value : parameter) { + if (!value.canConvert<QDBusArgument>()) { + continue; + } + const QDBusArgument argument = value.value<QDBusArgument>(); + if (argument.currentSignature() != QLatin1String("a{sv}")) { + continue; + } + return qdbus_cast<QVariantMap>(argument).value(QStringLiteral("activation-token")).toString(); + } + return {}; +} +void NotifyByPortal::onPortalNotificationActionInvoked(const QString &id, const QString &action, const QVariantList ¶meter) +{ auto iter = d->portalNotifications.find(id.toUInt()); if (iter == d->portalNotifications.end()) { return; @@ -218,6 +232,9 @@ KNotification *n = *iter; if (n) { + if (const QString token = activationToken(parameter); !token.isEmpty()) { + Q_EMIT xdgActivationTokenReceived(n->id(), token); + } Q_EMIT actionInvoked(n->id(), action); } else { d->portalNotifications.erase(iter);
