MicroPad-Electron icon indicating copy to clipboard operation
MicroPad-Electron copied to clipboard

Wrong StartupWMClass

Open felixlberg opened this issue 5 years ago • 3 comments

Hello

There is a problem with the latest debian .deb version (3.21.6) and StartupWMClass in the .desktop file which is created under /usr/share/applications/micropad.desktop.

The app starts with the class: µPad not µPad so you are getting a problem similar to this (double icons in launcher). I was able to workaround this by adding StartupWMClass=µPad to the desktop file but I think the wrong name gets generated by electron in build process...

felixlberg avatar Feb 11 '20 11:02 felixlberg

Ah, interesting. I'll have a look at https://github.com/Zettlr/Zettlr/blob/829b2254da9779e3331d692bc8cd1ee3c1d76e7c/scripts/build-app.js to see if I can re-use their fix.

NickGeek avatar Feb 12 '20 02:02 NickGeek

I think this happens by the special character µ

If you use xprop WM_CLASS to show the actual generated WMClass you get different letters \302\265pad this seems to me like some wrong encoded binary values. Here some example.

felixlberg avatar Feb 12 '20 12:02 felixlberg

I've experienced the same issue. The workaround worked well. Thanks @felixlberg!

gushev avatar Dec 30 '20 09:12 gushev