Bug 462283 - xdg-desktop-portal-kde notification produces sound
Summary: xdg-desktop-portal-kde notification produces sound
Status: RESOLVED DUPLICATE of bug 457672
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-26 17:02 UTC by Ilya Fedin
Modified: 2022-11-28 19:43 UTC (History)
4 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 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 ***