Post

Ubuntu 24.04 Add StartupWMClass to .Desktop

  1. console execute xprop WM_CLASS, and use Alt-Tab to switch to the application window, and click.

  2. The result would be:

1
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "NetBeans IDE 8.2"
  1. paste without the double qoutes:
1
2
3
4
[Desktop Entry]  
...
StartupWMClass=NetBeans IDE 8.2
...
This post is licensed under CC BY 4.0 by the author.