mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Make Nheko show up in system notification settings on Linux
relates to #845
This commit is contained in:
parent
6484ed6496
commit
c03e4c1261
2 changed files with 5 additions and 2 deletions
|
@ -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…
Reference in a new issue