Merge pull request #372 from bebehei/notification

Improvements to Linux notification manager
pull/1/head
mujx 6 years ago committed by GitHub
commit 96a2c614bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/notifications/ManagerLinux.cpp

@ -53,7 +53,7 @@ NotificationsManager::showNotification(const QString summary,
const QImage image) const QImage image)
{ {
QVariantMap hints; QVariantMap hints;
hints["image_data"] = image; hints["image-data"] = image;
QList<QVariant> argumentList; QList<QVariant> argumentList;
argumentList << "nheko"; // app_name argumentList << "nheko"; // app_name
argumentList << (uint)0; // replace_id argumentList << (uint)0; // replace_id
@ -62,7 +62,7 @@ NotificationsManager::showNotification(const QString summary,
argumentList << text; // body argumentList << text; // body
argumentList << (QStringList("default") << "reply"); // actions argumentList << (QStringList("default") << "reply"); // actions
argumentList << hints; // hints argumentList << hints; // hints
argumentList << (int)0; // timeout in ms argumentList << (int)-1; // timeout in ms
static QDBusInterface notifyApp("org.freedesktop.Notifications", static QDBusInterface notifyApp("org.freedesktop.Notifications",
"/org/freedesktop/Notifications", "/org/freedesktop/Notifications",

Loading…
Cancel
Save