Comment 62 for bug 484610

Jelmer Kuperus (jelmer-jteam) wrote :

I created a java agent that changes the default string that the jdk assigns to WM_CLASS

Just download this jar http://jelmer.s3.amazonaws.com/agent.jar (source included in the jar)

And start your java program with the argument

-javaagent:agent.jar=WHATEVER_YOUR_WM_CLASS_SHOULD_BE

Then add StartupWMClass=WHATEVER_YOUR_WM_CLASS_SHOULD_BE

To your .desktop file

I blogged about this here : http://blog.jteam.nl/2011/01/09/make-intellij-idea-behave-properly-in-linux-docks/