Ubuntu 24.04 Add StartupWMClass to .Desktop
console execute
xprop WM_CLASS, and useAlt-Tabto switch to the application window, and click.The result would be:
1
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "NetBeans IDE 8.2"
- 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.