Bug 462283

Summary: xdg-desktop-portal-kde notification produces sound
Product: [Plasma] xdg-desktop-portal-kde Reporter: Ilya Fedin <fedin-ilja2010>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, jgrulich, kdebugs.81do7, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ilya Fedin 2022-11-26 17:02:37 UTC
SUMMARY
I believe KNotification::DefaultEvent is the cause

STEPS TO REPRODUCE
1. Get a portal notification

OBSERVED RESULT
No sound, like with other notifications

EXPECTED RESULT
There's sound

SOFTWARE/OS VERSIONS
Operating System: NixOS 22.11
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.7-zen1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 5.7 GB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics

ADDITIONAL INFORMATION
xdg-desktop-portal-kde provides notifications from applications, DefaultEvent is not for standard KDE notifications according to he documentation
Comment 1 Ilya Fedin 2022-11-26 17:03:40 UTC
*is for standard KDE notifications
Comment 2 Wyatt Childers 2022-11-28 17:53:15 UTC
*** Bug 462357 has been marked as a duplicate of this bug. ***
Comment 3 Wyatt Childers 2022-11-28 17:57:03 UTC
A workaround was given by a Telegram contributor here: https://github.com/telegramdesktop/tdesktop/issues/25469#issuecomment-1329483514

sudo sed -i 's/org.freedesktop.impl.portal.Notification;//' /usr/share/xdg-desktop-portal/portals/kde.portal
systemctl --user restart xdg-desktop-portal

This requires xdg-desktop-portal-gtk to be installed.
Comment 4 Nate Graham 2022-11-28 19:43:09 UTC

*** This bug has been marked as a duplicate of bug 457672 ***