Workaround to fix Microsoft Edge based Web Apps not having there own icon when Wayland is enabled

I had this issues when I enabled WAYLAND for ms-edge using the ~/.config/microsoft-edge-stable-flags.conf file

--enable-features=WebRTCPipeWireCapturer
--enable-features=UseOzonePlatform
--ozone-platform=wayland

I was able to find the WMClass for the “App” after opening it using this

unix[dot]stackexchange[dot]com/questions/362731/how-to-identify-window-by-clicking-in-wayland

Once I knew that, all I had to do was rename the .desktop file based on it. Which was just adding _ to the name e.g.

mv msedge-hpfldicfbfomlpcikngkocigghgafkph-Default.desktop msedge-_hpfldicfbfomlpcikngkocigghgafkph-Default.desktop
                                                                 ^^^

And I got the “Icons” like how it was before. :slight_smile:

PS: (29-11-2022)

This worked but when the “App” receives a notification, clicking on it doesn’t focus to the app window.

For now, just switched to Firefox.

PS: (12-12-2022)

Seems like this issue is only present in MS Edge and works as expected in Chrome, Brave.

On KDE Plasma, there is also one more thing that can lead to PWAs using MS Edge icon…
If you have your task-manager in panel with option to group icons based on the app name, since PWAs got ‘msedge’ prefix, they get grouped with MS Edge icon as a same app…

This tutorial may be useful to you: