MicroPad / MicroPad-Electron

The desktop app of https://github.com/MicroPad/MicroPad-Core
Mozilla Public License 2.0
64 stars 4 forks source link

Wrong StartupWMClass #33

Open felixlberg opened 4 years ago

felixlberg commented 4 years ago

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...

NickGeek commented 4 years ago

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.

felixlberg commented 4 years ago

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.

gushev commented 3 years ago

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