Bug 367820

Summary: Sound applet shows wrong icon for chromium-based browsers
Product: [Plasma] plasma-pa Reporter: Patrick Silva <bugseforuns>
Component: appletAssignee: David Rosca <nowrep>
Status: RESOLVED NOT A BUG    
Severity: normal CC: plasma-bugs
Priority: NOR    
Version: 5.7.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot

Description Patrick Silva 2016-08-25 21:36:26 UTC
Applet shows chromium icon instead the correct icons

Reproducible: Always

Steps to Reproduce:
1.open any chromium-based browser (I tested Opera and Vivaldi)
2.go to youtube and play any video
3.open sound applet, select "Applications" tab

Actual Results:  
Applet shows chromium icon instead the correct icon. See the screenshot.

Expected Results:  
Applet shows the correct app icon
Comment 1 Patrick Silva 2016-08-25 21:39:28 UTC
Created attachment 100761 [details]
screenshot
Comment 2 David Rosca 2016-09-21 08:28:50 UTC
That's because chromium browsers sets following properties to streams:

application.icon_name = "chromium-browser"
application.name = "Chromium"
application.process.binary = "qupzilla" (or opera, vivaldi, ...)
module-stream-restore.id = "sink-input-by-application-name:Chromium"

Sound applet prefers the icon_name entry and that's why it displays chromium icon. I won't make special case for those browsers.