set desktop-entry hint with libnotify (#6615)
Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -346,7 +346,7 @@ void Toasts::ensureInitialized()
|
||||
{
|
||||
return;
|
||||
}
|
||||
auto result = notify_init("chatterino2");
|
||||
auto result = notify_init("Chatterino");
|
||||
|
||||
if (result == 0)
|
||||
{
|
||||
@@ -367,6 +367,10 @@ void Toasts::sendLibnotify(const QString &channelName,
|
||||
NotifyNotification *notif = notify_notification_new(
|
||||
str.toUtf8().constData(), channelTitle.toUtf8().constData(), nullptr);
|
||||
|
||||
notify_notification_set_hint(
|
||||
notif, "desktop-entry",
|
||||
g_variant_new_string("com.chatterino.chatterino"));
|
||||
|
||||
// this will be freed in onNotificationDestroyed
|
||||
auto *channelNameHeap = new QString(channelName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user