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
+1
View File
@@ -25,6 +25,7 @@
- Bugfix: Fixed restore button not showing on Windows. (#6565) - Bugfix: Fixed restore button not showing on Windows. (#6565)
- Bugfix: Fixed popups and the overlay not being draggable on Wayland. (#6573) - Bugfix: Fixed popups and the overlay not being draggable on Wayland. (#6573)
- Bugfix: Fixed middle-clicking usernames in a local channel opening an invalid viewercard. (#6577) - Bugfix: Fixed middle-clicking usernames in a local channel opening an invalid viewercard. (#6577)
- Bugfix: Added `desktop-entry` hint to Linux notifications. (#6615)
- Dev: Update release documentation. (#6498) - Dev: Update release documentation. (#6498)
- Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493) - Dev: Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. (#6493)
- Dev: Remove unused QTextCodec includes. (#6487) - Dev: Remove unused QTextCodec includes. (#6487)
+5 -1
View File
@@ -346,7 +346,7 @@ void Toasts::ensureInitialized()
{ {
return; return;
} }
auto result = notify_init("chatterino2"); auto result = notify_init("Chatterino");
if (result == 0) if (result == 0)
{ {
@@ -367,6 +367,10 @@ void Toasts::sendLibnotify(const QString &channelName,
NotifyNotification *notif = notify_notification_new( NotifyNotification *notif = notify_notification_new(
str.toUtf8().constData(), channelTitle.toUtf8().constData(), nullptr); 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 // this will be freed in onNotificationDestroyed
auto *channelNameHeap = new QString(channelName); auto *channelNameHeap = new QString(channelName);