Make Nheko show up in system notification settings on Linux

relates to #845
This commit is contained in:
Nicolas Werner 2021-12-19 08:41:09 +01:00
parent 6484ed6496
commit c03e4c1261
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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