Bug 408800 - Transient notifications are preserved in notification history
Summary: Transient notifications are preserved in notification history
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 5.16.0
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-16 18:55 UTC by hal7df
Modified: 2019-06-17 06:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hal7df 2019-06-16 18:55:55 UTC
SUMMARY

Notifications sent by D-Bus may contain a 'transient' hint to inform the notification server not to preserve the notification in the notification history, if present. The new notification system does not appear to observe this hint, as notifications marked as 'transient' appear in the history applet.

STEPS TO REPRODUCE
1. Launch a program that sets the "transient" hint with its notifications (e.g. Clementine)
2. Perform an action that sends a transient notification (e.g. with Clementine, start playing a song)

OBSERVED RESULT
Notifications are kept in the notification history if not dismissed by the user.

EXPECTED RESULT
Notifications should not be kept in the notification history, even if not dismissed by the user.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon 5.16.0 (Ubuntu bionic)
(available in About System)
KDE Plasma Version: 5.16.0
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

ADDITIONAL INFORMATION
You can see the hint in the message using the following command prior to sending the notification:

dbus-monitor "interface='org.freedesktop.Notifications'" | grep --line-buffered "member=Notify\|string\|boolean"

`transient' hint specification: https://developer.gnome.org/notification-spec/#hints
Comment 1 Nate Graham 2019-06-16 22:26:10 UTC
Sounds like we should apply the same logic given to Low Priority notifications to these Transient ones too.
Comment 2 Kai Uwe Broulik 2019-06-17 06:34:46 UTC
Basically all notifications I get are marked "transient" rendering the history moot if I consider it.

Clementine should set song notifications to low priority like most other players do. In fact, I fixed some 3rd party players (cantata, VLC) to do that.