Bug 408800

Summary: Transient notifications are preserved in notification history
Product: [Plasma] plasmashell Reporter: hal7df
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.16.0   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.