Bug 486483

Summary: Retain notification history across plasmashell restarts
Product: [Plasma] plasmashell Reporter: Paul Wise <pabs3>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, nate
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paul Wise 2024-05-03 02:11:16 UTC
SUMMARY
When the Plasma Shell is restarted, it looses all notification history.

STEPS TO REPRODUCE
1. Get an application to send a notification.
2. Verify the notification is in the history.
3. Run `systemctl restart plasma-plasmashell.service`
4. Check the notification history again.

OBSERVED RESULT
The notification history is empty after the restart.

EXPECTED RESULT
The notification history is preserved after restarts.

SOFTWARE/OS VERSIONS
KDE Neon: neon-unstable-20240428-1118.iso
(available in About System)
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
I discovered this on Debian trixie with KDE Plasma Desktop 5 and then verified it was still present in the latest KDE Neon unstable distribution. The restarts on Debian were due to plasmashell crashes, but I also want to safely be able to do systemctl restarts based on needrestart output after library upgrades.
Comment 1 Nate Graham 2024-05-03 19:42:20 UTC
Yup, notification history is in-memory only at this point.