From 2d446db2f696db73be5e601be5ffcfdf586d5630 Mon Sep 17 00:00:00 2001 From: teknsl <64030674+teknsl@users.noreply.github.com> Date: Mon, 1 Dec 2025 14:36:10 +0100 Subject: [PATCH] set desktop-entry hint with libnotify (#6615) Reviewed-by: Rasmus Karlsson --- CHANGELOG.md | 1 + src/singletons/Toasts.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8b5a53a..3bf3e9c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Bugfix: Fixed restore button not showing on Windows. (#6565) - 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: Added `desktop-entry` hint to Linux notifications. (#6615) - 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: Remove unused QTextCodec includes. (#6487) diff --git a/src/singletons/Toasts.cpp b/src/singletons/Toasts.cpp index 49065d41..f30d1461 100644 --- a/src/singletons/Toasts.cpp +++ b/src/singletons/Toasts.cpp @@ -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);