This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 220545 - [Ubuntu] Desktop file should specify StartupWMClass
Summary: [Ubuntu] Desktop file should specify StartupWMClass
Status: RESOLVED INCOMPLETE
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 217964 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-22 09:08 UTC by nedenom
Modified: 2012-12-10 15:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nedenom 2012-10-22 09:08:01 UTC
Now that the WM_CLASS is set correctly in Netbeans, the installer should specify StartupWMClass in the .desktop file to avoid the double icon problem in the Unity launcher in Ubuntu.

Eg. for Netbeans 7.2, the netbeans-7.2.desktop file should include the following line:

StartupWMClass=NetBeans IDE 7.2
Comment 1 Jiri Rechtacek 2012-10-25 14:34:03 UTC
*** Bug 217964 has been marked as a duplicate of this bug. ***
Comment 2 Libor Fischmeistr 2012-11-14 09:53:29 UTC
I am still unable to reproduce this "double icon" bug, so I cannot correctly setup the .desktop file to avoid it.

Can I ask you for better info about your system - Ubuntu version, JDK version...

Helpful also could be the IDE log - In NB main menu - View - IDE Log - System info block should be enough.

Thanks
Comment 3 nedenom 2012-12-07 08:40:53 UTC
This has been a common problem with Unity and Java applications, also check out this: https://bugs.launchpad.net/unity/+bug/757991

The related issue partly fixes this.

I'm currently running Ubuntu 12.04 with Unity and Java 1.6.


-------------------------------------------------------------------------------
>Log Session: Friday, December 7, 2012 9:27:24 AM CET
>System Info: 
  Product Version         = NetBeans IDE 7.2 (Build 201207171143) (#b6c037585768)
  Operating System        = Linux version 3.2.0-33-generic running on amd64
  Java; VM; Vendor        = 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_26-b03
  Java Home               = /usr/lib/jvm/java-6-sun-1.6.0.26/jre
  System Locale; Encoding = en_US (nb); UTF-8
  Home Directory          = /home/trygve
  Current Directory       = /home/trygve
  User Directory          = /home/trygve/.netbeans/7.2
  Cache Directory         = /home/trygve/.cache/netbeans/7.2
  Installation            = /usr/local/netbeans-7.2/nb
                            /usr/local/netbeans-7.2/ide
                            /usr/local/netbeans-7.2/java
                            /usr/local/netbeans-7.2/apisupport
                            /usr/local/netbeans-7.2/webcommon
                            /usr/local/netbeans-7.2/websvccommon
                            /usr/local/netbeans-7.2/enterprise
                            /usr/local/netbeans-7.2/profiler
                            /usr/local/netbeans-7.2/harness
                            /usr/local/netbeans-7.2/extra
                            /usr/local/netbeans-7.2/javafx
                            /usr/local/netbeans-7.2/platform
Comment 4 nedenom 2012-12-10 15:06:28 UTC
Just to clarify my previous comment:

The related issue I mentioned that partly fixes this, is this one: http://netbeans.org/bugzilla/show_bug.cgi?id=183739 (listed in the "See Also" of the current issue)

The link to Unity issue tracker was only meant for background info.