Bug 500621

Summary: Notification body is presented twice to Orca
Product: [Plasma] plasmashell Reporter: Harley Richardson <hrichardson2004>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: cwo.kde, kde, nate
Priority: NOR Keywords: accessibility
Version: git-stable-Plasma/6.3   
Target Milestone: 1.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.2
Sentry Crash Report:

Description Harley Richardson 2025-02-23 13:49:04 UTC
SUMMARY
When a notification is received from any application, the body of the notification is repeated twice, and the application only once at the end.

STEPS TO REPRODUCE
1. Trigger a notification from any application. Notify send, Discord, KDE applications etc.
2. Orca will repeat the body of the notification twice.
3. Use notify-send without providing a body, for example notify-send test in a terminal. Test will be spoken, but so will a lot of QML code.

OBSERVED RESULT
Notification bodies get presented in the accessibility tree twice.

EXPECTED RESULT
There should only be 1 notification body spoken when a notification is received. If the notification doesn't have a body, there should be no QMl code spoken.

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Example of a double presenting notification: Battery Low (20% Remaining) Plug in the power cord.  Plug in the power cord.  from Power Management
Comment 1 cwo 2025-02-23 20:09:49 UTC
Thank you for the bug report!

I noticed this a few weeks ago myself and submitted a fix, but it is still awaiting review. It should resolve both issues, the double readout on regular notifications and the html readout on notifications that contain rich text.

https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5171