PureWriter / desktop

Pure Writer Desktop
https://writer.drakeet.com/desktop
GNU General Public License v3.0
1.23k stars 100 forks source link

Fix additional icon shown on linux #40

Closed catsout closed 3 years ago

catsout commented 3 years ago

From desktop specification :

StartupWMClass=STRING
  If true, it is KNOWN that the application will map at least one
  window with the given string as its WM class or WM name hint.

From askubuntu, WMClass can be got with xprop WM_CLASS command

> xprop WM_CLASS
WM_CLASS(STRING) = "com-drakeet-purewriter-Wwwwwww", "com-drakeet-purewriter-Wwwwwww"

So, adding StartupWMClass=com-drakeet-purewriter-Wwwwwww to desktop file(pure-writer-Pure_Writer.desktop) can fix this problem.
But seems that this file is auto generated(with a Unknown Categories), hope that there is a place to specific startupwmclass key.

Also there is a input method(fcitx5) position problem, same problem like 1 and 2.