Bug 482156

Summary: Icons-Only Task Manager will stop respecting the window class after a while
Product: [Plasma] plasmashell Reporter: Danilo Luvizotto <danilo.luvizotto>
Component: Task Manager and Icons-Only Task ManagerAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: nate, nicolas.fella, qydwhotmail
Priority: NOR Keywords: qt6
Version: 6.0.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=475736
https://bugs.kde.org/show_bug.cgi?id=358277
Latest Commit: Version Fixed In:

Description Danilo Luvizotto 2024-03-01 14:07:28 UTC
SUMMARY
2 instance of an app with different window classes will be grouped together after some time

Note: this is about released KDE and Plasma 6.0.0, but that version is not available to be selected on the bug tracker.


STEPS TO REPRODUCE
Among others, I have the following applications pinned to my icons-only task manager:
- Firefox
- Whatsapp, which is a Firefox with a different profile and "firefox-whatsapp" window class:
  - Exec=firefox --class "firefox-whatsapp" --name "firefox-whatsapp" --profile "/home/user/.mozilla/firefox/profile.whatsapp" %u

OBSERVED RESULT
When I launch Firefox and Whatsapp, the task manager will correctly differentiate them, highlighting their respective launchers on the task bar.

But after a while, they will be both grouped on the Firefox launcher, and clicking the Whatsapp one will launch another instance.

EXPECTED RESULT
Whatsapp would be always assigned to the correct icon on the task manager.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Running on wayland
Comment 1 Nate Graham 2024-03-01 21:20:17 UTC
I suspect this is related to Bug 475736 or Bug 358277.
Comment 2 Danilo Luvizotto 2024-03-04 22:06:30 UTC
It's been days since it last happened. When I observed it, I was editing color schemes and Plasma themes, and I restarted plasmashell several times. If I can't reproduce it in the next fews days, I'll just close this.
Comment 3 Danilo Luvizotto 2024-03-08 18:58:28 UTC
ok, I figured out how to reproduce it:

1. Close plasmashell with `kquitapp6 plasmashell`
2. Run plasmashell again

Both Firefox and Whatsapp will be grouped together as Firefox in the Icons-only task manager.