Bug 465482

Summary: Duplicate icons on taskbar and unexpected icon change due to similar waydroid app installed.
Product: [Plasma] plasmashell Reporter: gigastarcraft2
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.26.5   
Target Milestone: 1.0   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Tor taskbar

Description gigastarcraft2 2023-02-08 16:36:31 UTC
Created attachment 156078 [details]
Tor taskbar

When launching Tor browser KDE duplicates icon. In order to use app you need to click on duplicated one. 
Another thing I found after installing waydroid it changes standard Tor icon to android one... 

STEPS TO REPRODUCE
1. Download and install tor browser.
2. Click on icon and move to taskbar adding tor icon.
3. Start tor browser.
4. Install waydroid and install tor browser on waydroid OS and start again icon changes but it should not.

OBSERVED RESULT
Duplicate icons on taskbar and icon changes to waydroid tor browser.

EXPECTED RESULT
No duplicates and no different icons.

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma:  6.1.8-artix1-1 (64 bit)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Wayland

ADDITIONAL INFORMATION
https://i.imgur.com/tCPyBDN.jpeg
Comment 1 Nate Graham 2023-02-08 19:35:08 UTC
This is a bug in the app; apparently it changes its WM_CLASS or WM_NAME after launch. It should either not do that, or else specify the expected new values in its .desktop file. Doing neither is invalid behavior.
Comment 2 gigastarcraft2 2023-03-11 06:56:32 UTC
(In reply to Nate Graham from comment #1)
> This is a bug in the app; apparently it changes its WM_CLASS or WM_NAME
> after launch. It should either not do that, or else specify the expected new
> values in its .desktop file. Doing neither is invalid behavior.

It turns out for tor browser I had to copy .desktop file to /home/[user name]/.local/share/applications/ and now it works as it should. I do not know for other apps.