Add `desktop-entry' hint to D-Bus notifications.

The notification system in KDE Plasma 5.16+ requires a 'desktop-entry'
hint in the D-Bus message to enable per-application notification
settings.
This commit is contained in:
Paul Bonnen 2019-06-16 12:30:39 -04:00
parent dd19df6ee4
commit 8483d24a04
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ void OSD::ShowMessageNative(const QString& summary, const QString& message,
hints["image_data"] = QVariant(image);
}
hints["desktop-entry"] = QVariant(QCoreApplication::applicationName());
hints["transient"] = QVariant(true);
int id = 0;