# Fix Wayland icons of apps after switching to KDE & Wayland [Ubuntu 24.04] ## Description After switching to Wayland some apps have default Wayland icon: ![Default icons screenshot](https://gist.github.com/assets/856993/dfbcafb4-fe2f-4ffc-9e53-c8968a54f68a) ## Example setup for Firefox The solution is to setup proper `.desktop` file name for windows of these apps. 1. Find the proper name of Firefox `.desktop` file: ``` $ find ~ -iname *firefox*.desktop ~/.local/share/applications/firefox_firefox.desktop ``` 2. 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. ![Setup screenshot](https://gist.github.com/assets/856993/aaea10a2-0cdb-4662-aa14-f417e9291f58) **Alternatvelly** one can use the [WaylandDesktopFile.kwinrule](WaylandDesktopFile.kwinrule) file provided. In the **Window Rules** dialog click **Import...** and set the actual `.desktop` file name afterwards. ## Links * https://old.reddit.com/r/kde/comments/15m2aak/after_switching_slack_firefox_to_use_wayland/ * https://imgur.com/3yb0g0j