set desktop-entry hint with libnotify (#6615)

Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
teknsl
2025-12-01 14:36:10 +01:00
committed by GitHub
parent d3287a615b
commit 2d446db2f6
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -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);