How to fix generic Wayland icon in taskbar for "foreign" apps (Firefox Dev edition)

That does not actually fix it for me. The workaround I tried is of course taken from that blog, as I already mentioned:

But I found one that does work in Nick’s TLE video:
youtube com/watch?v=Sungl8gWU_8&t=129s

The only problem here is, the first step says to right-click the title bar, but if your app doesn’t have a title bar like for instance Firefox, you need to go directly to the window rules:
Settings > Apps&Windows > Window Management > Window Rules

You need to match the app window class to create a new window rule as described later in the video:
youtube com/watch?v=Sungl8gWU_8&t=268s

and then you can proceed as described in the video, even if without adding the title bar first.

I thought the fix would work differently if the app is not installed by package manager, but it’s the same. You just need to know the correct name and location of the desktop file, and match that in the window rules.