I can confirm (that this is a pain). 1) Use xprops to find the proper WM_CLASS for your running application (e.g. downloaded jar, JabRef in my case). 2) From comment #16, add the proper tag to your desktop file: "StartupWMClass=<WM_CLASS>" (modify according to results of 1). This does not work yet. Actually, the app shows up for 1s and disappeared. Previously, without the startupwmclass tag, it was a void icon (nothing display), that did not work either. The trick is: 3) Put that desktop entry into your launcher, log out, log in.
I was able to hit the icon shortly before it disappeared, which crashed compiz *g*. Without compiz the icon did not disappear and right-click > keep in launcher worked fine. After relog, compiz works again and the icon too. Alternatively, it could work to drag&drop the desktop file to the launcher (which had no effect on my system - zero sized icon eventually?) and relog. -- You received this bug notification because you are a member of OpenJDK, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/757991 Title: java applications a double icon appears Status in BAMF Application Matching Framework: Invalid Status in Unity: Triaged Status in Unity 2D: Invalid Status in “bamf” package in Ubuntu: Invalid Status in “openjdk-6” package in Ubuntu: Confirmed Status in “unity” package in Ubuntu: Triaged Bug description: I have this problem with many java based programs. I create a launcher in unity (right click: "Keep in launcher"), and when I re-launch the application a double icon of the application appears. Step to reproduce: 1. download josm here: http://josm.openstreetmap.de/ 2. open a terminal and launch the application: java -jar josm-tested.jar 3. stick the application to unity (right click: "Keep in launcher") 4. close the application 5. launch the application from the unity launcher 6. the problem should appear To manage notifications about this bug go to: https://bugs.launchpad.net/bamf/+bug/757991/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openjdk Post to : [email protected] Unsubscribe : https://launchpad.net/~openjdk More help : https://help.launchpad.net/ListHelp

