Bug 507322 - On Wayland, custom firefox-<profile>.desktop files get grouped together under generic Wayland icon
Summary: On Wayland, custom firefox-<profile>.desktop files get grouped together under...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (other bugs)
Version First Reported In: 6.3.4
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2025-07-21 17:53 UTC by mailman.ich
Modified: 2025-10-02 21:34 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mailman.ich 2025-07-21 17:53:34 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

I am running firefox with mutliple profiles and therefore I created .desktop entries for all profiles.
This way, Plasma on X11 nicely groups all windows of the same profile together.

When I recently tried switching to Wayland on my Ubuntu 25.04, this behavior got completely broken.
Now all Firefox windows get grouped together in one big group, and also the symbol is not the Firefox symbol any more, but rather some yellow "W" placeholder icon.

STEPS TO REPRODUCE
1. Create a new Firefox profile called "private
2. Put the following in `.local/share/applications/firefox-private.desktop`:
```
[Desktop Entry]
Comment=
Exec=firefox --private -P private --class=firefox-private %u
Icon=firefox
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
Name=Firefox private
NoDisplay=false
Path=
StartupNotify=true
StartupWMClass=firefox-private
Terminal=false
TerminalOptions=
Type=Application
Version=1.0
X-KDE-SubstituteUID=false
X-KDE-Username=
```
3. Open the "Firefox private" application from the start menu on Wayland

OBSERVED RESULT
- Firefox starts loading with the correct Firefox icon, but once the browser window has appeared, it has a yellow "W" placeholder application icon.
- Firefox windows of any profiles get grouped together in one big group in the task bar

EXPECTED RESULT
- Firefox windows all have the correct icon
- Each Firefox profile gets its own window group in the task bar 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: plasma-workspace 4:6.3.4-0ubuntu2
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION
Comment 1 TraceyC 2025-09-17 22:59:12 UTC
Thanks for the report. This is, unfortunately, intended / non-bug behavior. I know I've seen this mentioned before, but I'm not able to find another report about it.

I'll let the developers consider how to implement this.
Comment 2 Mladen Milinkovic, Max 2025-10-02 21:34:32 UTC
I don't think this is intended, but a bug. It's likely a duplicate of 453100.

Also if you add `--name=firefox-private` parameter to firefox in firefox-private.desktop file it will be correctly detected/associated in KWin, but still wrong in Icons-and-Text task manager.