mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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
|
StartupWMClass=nheko
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=x-scheme-handler/matrix;
|
MimeType=x-scheme-handler/matrix;
|
||||||
|
X-GNOME-UsesNotifications=true
|
||||||
|
|
|
@ -144,8 +144,10 @@ NotificationsManager::systemPostNotification(const QString &room_id,
|
||||||
const QImage &icon)
|
const QImage &icon)
|
||||||
{
|
{
|
||||||
QVariantMap hints;
|
QVariantMap hints;
|
||||||
hints["image-data"] = icon;
|
hints["image-data"] = icon;
|
||||||
hints["sound-name"] = "message-new-instant";
|
hints["sound-name"] = "message-new-instant";
|
||||||
|
hints["desktop-entry"] = "nheko";
|
||||||
|
|
||||||
QList<QVariant> argumentList;
|
QList<QVariant> argumentList;
|
||||||
argumentList << "nheko"; // app_name
|
argumentList << "nheko"; // app_name
|
||||||
argumentList << (uint)0; // replace_id
|
argumentList << (uint)0; // replace_id
|
||||||
|
|
Loading…
Reference in a new issue