Bug 378058

Summary: Reload applet if pulseaudio restarted
Product: [Unmaintained] plasma-pa Reporter: Ural <uralzima>
Component: generalAssignee: David Rosca <nowrep>
Status: RESOLVED DUPLICATE    
Severity: normal CC: plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.9.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ural 2017-03-25 10:09:28 UTC
Hello. 
Sometimes pulseaudio crashes. The volume icon comes disabled.
If I do 'pulseaudio --start', volume icon will be unusable until logout. 
In KDE4, I resolved it by 'killall kmix; kmix', but in Plasma 5 there is no way to do this.

Can you add some loop check, if pulseaudio crashed and then becomes available, reload the volumes?

I found a similar bug report here, but it is old, outdated and belongs to version 5.5 https://bugs.kde.org/show_bug.cgi?id=358772 and have different description.

The problem still exists in Plasma 5.9.4

Thanks
Comment 1 David Rosca 2017-03-25 10:10:39 UTC
Works fine here, can you please post output of plasmashell when you restart pulseaudio?
Comment 2 David Rosca 2017-03-25 10:21:40 UTC

*** This bug has been marked as a duplicate of bug 358772 ***
Comment 3 Ural 2017-03-25 20:10:37 UTC
Hm, strange. If I do 'pulseaudio -k; pulseaudio --start', applet reloading well. I had this issue when pulseaudio crashed or was killed by lowmemorykiller, and when I did 'pulseaudio --start', applet was not reloaded. Maybe latest updates fixed it. I'll verify
Comment 4 David Rosca 2017-03-25 20:47:35 UTC
If a pulseaudio is restarted right after the crash (which is default when started with systemd user session) it will work correctly. If it is restarted with more than 1 second delay, it won't work.
Patch linked in bug 358772 fixes this.