Some applications on Linux using Wayland display a generic icon instead of their real one. This can be frustrating when switching between applications using the taskbar or Alt-Tab.
For me, these applications were Obsidian and Sublime Merge.
The fix (when using KDE) consists of adding a new KWin rule. To do this, follow these steps:
Go to “System Settings > Window Management > Window Rules”.
If the application does not have any rules already, create a new one:
If you’re unsure of the value for the window class, click “Detect Window Properties”, then click on the application window. A pop-up with the detected properties will be shown, and you can select the correct value.
Click on “Add Property” and select “Desktop File Name”.
/usr/share/applications/
./var/lib/flatpak/exports/share/applications/
. For example, for Obsidian, it will be md.obsidian.Obsidian
(do not include the .desktop
suffix).Apply the new settings and close the application if it was open. The next time you open the application, it should show the correct icon.