Created attachment 130995 [details] The desktop file causing the mentioned problems SUMMARY On my system Firefox provides 2 .desktop files: a regular one and a "Safe mode" on. I only ever want to launch the regular one except for very specific cases, so I pinned that one to my Latte dock. However, if I quit the application, then Latte for some reason has the "Safe mode" variant pinned. If I launch Firefox via the regular .desktop through for example KRunner then it does use the pinned entry for the launched application. STEPS TO REPRODUCE 1. Add the attached desktop file to your system in either /usr/share/applications or $HOME/.local/share/applications 2. Pin "normal" Firefox to the Latte dock 3. Quit Firefox OBSERVED RESULT The pinned entry mentions the "Safe" variant rather than the regular one EXPECTED RESULT For it to have pinned the regular variant and not to launch the safe mode SOFTWARE/OS VERSIONS Linux/KDE Plasma: Alpine Linux edge KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0
*** Bug 435923 has been marked as a duplicate of this bug. ***
As reported at Bug 435923, I had installed Firefox Nightly and Firefox stable, than trying to pin Firefox Nightly from (and to) Icons-only Task Manager will pin Firefox stable instead. Also, pinning from launcher (drag and drop) will produce the correct pinned icon (Firefox Nightly), but once the task is started the task manager will create another icon associated to the started Firefox Nightly but with wrong icon (got from Firefox stable). Trying to workaround this and get more details to this bug report, I removed any Firefox .desktop files from ~/.local/share/applications/, keeping only those in /usr/share/applications/. This didn't help and the problem persisted. So I uninstalled Firefox stable, to remove /usr/share/applications/firefox.desktop and to leave only /usr/share/applications/firefox-nightly.desktop. Than, after starting Firefox Nightly from Icons-Only Task Manager, the started task got a new icon from icon task manager, not related to Firefox Nightly, not even Firefox Stable (which was uninstalled), the new task icon was the orange icon from Wayland.
I have same issue with desktop shortcuts. Only difference is that I successfully used different shortcuts for different firefox profiles at different activities and mine were working fine until I switched to Wayland. Now if I start firefox it launches correct profile but creates pin for wrong firefox shortcut.
What I found so far: In desktop file I put "StartupWMClass=firefox-whatever". In command exec string I add "--class firefox-whatever". In kwin debug consile for firefox window I see "resourceClass firefox".