Bug 397445

Summary: Notification sounds don't play when any video game is run
Product: [Plasma] plasmashell Reporter: Ghost <redredemption>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate, notuxius, plasma-bugs
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ghost 2018-08-14 12:29:45 UTC
The system's notification sounds do not play either through use of the play button in 'Notifications' configuration module or when a dialog box/notification popup is generated by a program like Dolphin or Konversation if any video game is played.

Steps to reproduce:
1. Open 'Notifications' configuration module in 'System Settings';
2. Click on the play button for any notification type with 'Play a sound" checked to verify whether the selected sound is played;
3. Run Steam client and run any game from your Steam library;
4a. Go back to the configuration module and click on the play button again.
4b. Open 'Dolphin' file manager and select any item/file and then press 'Del' button to trigger a warning dialog box.
4c. Enable popup notifications for new messages in a channel in 'Konversation' IRC client and wait for someone to send a message in a channel, which for notifications are enabled. 

Actual Results:  
No sound was played

Expected Results:  
A notification sound should be played

To get notification sounds working back, just close the game and the configuration module or the program (Dolphin or Konversation as in this example) and then follow all the steps above except for 3rd one.
Comment 1 Alexander Mentyu 2018-10-02 19:10:09 UTC
Cannot reproduce both in X11 and Wayland 

Tried with Broforce game - music of the game is continue to play when switching from it to other windows
and with Enter the Gungeon game - music of the game stops to play when switching from it to other windows

Notifications are playing when either game is running

Operating System: Netrunner Rolling
KDE Plasma Version: 5.13.5
Qt Version: 5.11.2
KDE Frameworks Version: 5.50.0
Comment 2 Nate Graham 2018-10-02 19:18:23 UTC
Kamil, please report back with any additional information that might help us locate the issue if you can still reproduce it. Thanks!