set desktop-entry hint with libnotify (#6615)
Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user