diff --git a/dataengines/notifications/notificationsengine.cpp b/dataengines/notifications/notificationsengine.cpp --- a/dataengines/notifications/notificationsengine.cpp +++ b/dataengines/notifications/notificationsengine.cpp @@ -209,6 +209,7 @@ const QString eventId = hints[QStringLiteral("x-kde-eventId")].toString(); const bool skipGrouping = hints[QStringLiteral("x-kde-skipGrouping")].toBool(); const QStringList &urls = hints[QStringLiteral("x-kde-urls")].toStringList(); + const QString &desktopEntry = hints[QStringLiteral("desktop-entry")].toString(); // group notifications that have the same title coming from the same app // or if they are on the "blacklist", honor the skipGrouping hint sent @@ -314,6 +315,14 @@ notificationData.insert(QStringLiteral("isPersistent"), isPersistent); notificationData.insert(QStringLiteral("expireTimeout"), timeout); + notificationData.insert(QStringLiteral("desktopEntry"), desktopEntry); + + KService::Ptr service = KService::serviceByStorageId(desktopEntry); + if (service) { + notificationData.insert(QStringLiteral("appServiceName"), service->name()); + notificationData.insert(QStringLiteral("appServiceIcon"), service->icon()); + } + bool configurable = false; if (!appRealName.isEmpty()) {