Make Nheko show up in system notification settings on Linux

relates to #845
v0.9.1-fixes
Nicolas Werner 3 years ago
parent 6484ed6496
commit c03e4c1261
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 1
      resources/nheko.desktop
  2. 6
      src/notifications/ManagerLinux.cpp

@ -9,3 +9,4 @@ Categories=Network;InstantMessaging;Qt;
StartupWMClass=nheko
Terminal=false
MimeType=x-scheme-handler/matrix;
X-GNOME-UsesNotifications=true

@ -144,8 +144,10 @@ NotificationsManager::systemPostNotification(const QString &room_id,
const QImage &icon)
{
QVariantMap hints;
hints["image-data"] = icon;
hints["sound-name"] = "message-new-instant";
hints["image-data"] = icon;
hints["sound-name"] = "message-new-instant";
hints["desktop-entry"] = "nheko";
QList<QVariant> argumentList;
argumentList << "nheko"; // app_name
argumentList << (uint)0; // replace_id

Loading…
Cancel
Save