You are not logged in.

#1 2024-03-10 09:23:12

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,571

Change default Wayland icon for electron apps Plasma 6

For certain electron apps, the icons in the taskbar and windows renders to default Wayland icon. In the Wayland wiki it says:

Note: In Plasma, some Electron applications can use the wrong icon (default Wayland one) for the window, while using the correct icon for the taskbar. To fix that, you can create a special application/window rule, forcing the desktop file name on such applications.

Could anyone explain how to make this rule?

Offline

#2 2024-03-22 10:08:43

longday
Member
Registered: 2024-03-22
Posts: 2

Re: Change default Wayland icon for electron apps Plasma 6

1. Search "window rules" in KDE system settings, and click the "Add New" button. You can find there is a "Detect Window Properties" button at the bottom.
2. Take drawio as an example. Open drawio, then click the "Detect Window Properties", and your cursor changes to a cross. Click drawio at this time, just like how xprop works in X11.
3. The window info is shown in system settings. You can add "window class (application)", and "Desktop file name" to the rule.
4. Check ~/.local/share/applications and /usr/share/applications, the .desktop file of drawio is probably called drawio.desktop not draw.io.desktop. So input drawio in the rule. You can use "Force" instead of "Apply Initially".

Last edited by longday (2024-03-22 10:12:05)

Offline

Board footer

Powered by FluxBB