After switching to Wayland some apps have default Wayland icon:
The solution is to setup proper .desktop
file name for windows of these apps.
- Find the proper name of Firefox
.desktop
file:
$ find ~ -iname *firefox*.desktop
~/.local/share/applications/firefox_firefox.desktop
- Setup KDE window rule.
Open System Settings -> Window Management -> Window Rules.
Click + Add New... and set the parameters:
- Window class (application) -> Exact Match, enter
firefox
- Match whole window class ->
Yes
- Click + Add Property... -> Select Desktop file name and enter name of
.desktop
file, e.g.firefox_firefox.desktop
in the example above.
Alternatvelly one can use the WaylandDesktopFile.kwinrule file provided. In the Window Rules dialog click Import... and set the actual .desktop
file name afterwards.