NetBeans 6.8 create another applet

Bug #500101 reported by iniweb
96
This bug affects 20 people
Affects Status Importance Assigned to Milestone
Docky
Fix Released
Low
Robert Dyer
Netbeans Core
Fix Released
Low

Bug Description

I added NetBeans 6.8 to docky, but when i launch the program he create new icon in dock. Example in attachment.

Revision history for this message
iniweb (iniwebaka) wrote :
Robert Dyer (psybers)
Changed in docky:
importance: Undecided → Low
assignee: nobody → Jason Smith (jassmith)
Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :

I can confirm this as well. All I get is a question mark for Netbeans (and other java apps). Revision 1025.

Revision history for this message
Robert Dyer (psybers) wrote :

Please attach the .desktop file for netbeans.

Also please run 'ps -ef | grep netbeans' (or whatever string matches the executable) and show us a list of the running netbeans process(es).

Changed in docky:
status: New → Incomplete
assignee: Jason Smith (jassmith) → Chris S. (cszikszoy)
Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :
Download full text (4.6 KiB)

marcus@silver:~$ ps -ef | grep netbeans
marcus 1289 1 0 18:13 ? 00:00:00 /bin/bash /home/marcus/.apps/netbeans-6.8/bin/../platform11/lib/nbexec --userdir /home/marcus/.netbeans/6.8 --jdkhome /usr/lib/jvm/default-java --branding nb --clusters /home/marcus/.apps/netbeans-6.8/nb6.8:/home/marcus/.apps/netbeans-6.8/ide12:/home/marcus/.apps/netbeans-6.8/java3:/home/marcus/.apps/netbeans-6.8/ergonomics2:/home/marcus/.apps/netbeans-6.8/bin/../xml2:/home/marcus/.apps/netbeans-6.8/apisupport1:/home/marcus/.apps/netbeans-6.8/bin/../webcommon1:/home/marcus/.apps/netbeans-6.8/websvccommon1:/home/marcus/.apps/netbeans-6.8/enterprise6:/home/marcus/.apps/netbeans-6.8/mobility8:/home/marcus/.apps/netbeans-6.8/profiler3:/home/marcus/.apps/netbeans-6.8/bin/../ruby2:/home/marcus/.apps/netbeans-6.8/bin/../python1:/home/marcus/.apps/netbeans-6.8/bin/../php1:/home/marcus/.apps/netbeans-6.8/bin/../visualweb2:/home/marcus/.apps/netbeans-6.8/bin/../soa2:/home/marcus/.apps/netbeans-6.8/identity2:/home/marcus/.apps/netbeans-6.8/bin/../uml6:/home/marcus/.apps/netbeans-6.8/harness:/home/marcus/.apps/netbeans-6.8/bin/../cnd3:/home/marcus/.apps/netbeans-6.8/bin/../dlight2:/home/marcus/.apps/netbeans-6.8/groovy2:/home/marcus/.apps/netbeans-6.8/bin/../extra:/home/marcus/.apps/netbeans-6.8/bin/../javafx2:/home/marcus/.apps/netbeans-6.8/bin/../javacard1: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -J-Xmx512m -J-Dorg.glassfish.v3ee6.installRoot=/home/marcus/.apps/sges-v3 -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
marcus 1483 1289 99 18:13 ? 00:00:52 /usr/lib/jvm/default-java/bin/java -Djdk.home=/usr/lib/jvm/default-java -classpath /home/marcus/.apps/netbeans-6.8/platform11/lib/boot.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/org-openide-modules.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/org-openide-util.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/boot_ja.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/boot_pt_BR.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/boot_zh_CN.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-modules_ja.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-modules_pt_BR.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-modules_zh_CN.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-util_ja.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-util_pt_BR.jar:/home/marcus/.apps/netbeans-6.8/platform11/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/default-java/lib/dt.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dnetbeans.system_http_proxy=DIRECT -Dnetbeans.system_http_non_proxy_hosts= -Dnetbeans.dirs=/home/marcus/.apps/netbeans-6.8/nb6.8:/home/marcus/.apps/netbeans-6.8/ide12:/home/marcus/.apps/netbeans-6.8/java3:/home/marcus/.apps/netbeans-6.8/ergonomics2:/home/marcus/.apps/netbeans-6.8/bin/../xml2:/home/marcus/.apps/netbeans-6.8/apisupport1:/home/marcus/.apps/netbeans-6.8/bin/../webcommon1:/home/ma...

Read more...

Revision history for this message
Sam Dodrill (shadow-h511) wrote :

here is my netbeans.desktop file

Revision history for this message
Sam Dodrill (shadow-h511) wrote :
Download full text (3.4 KiB)

here also is the command you asked us to run:
<code>
sam@Enterprise:~$ ps -ef | grep netbeans
sam 9371 1 0 20:00 ? 00:00:00 /bin/bash /usr/share/netbeans/6.7.1/bin/../platform10/lib/nbexec --userdir /home/sam/.netbeans/6.7 --jdkhome /usr/lib/jvm/java-6-sun --branding nb --clusters /usr/share/netbeans/6.7.1/nb6.7:/usr/share/netbeans/6.7.1/bin/../ergonomics1:/usr/share/netbeans/6.7.1/ide11:/usr/share/netbeans/6.7.1/java2:/usr/share/netbeans/6.7.1/bin/../xml2:/usr/share/netbeans/6.7.1/apisupport1:/usr/share/netbeans/6.7.1/bin/../webcommon1:/usr/share/netbeans/6.7.1/bin/../websvccommon1:/usr/share/netbeans/6.7.1/bin/../enterprise5:/usr/share/netbeans/6.7.1/bin/../mobility8:/usr/share/netbeans/6.7.1/bin/../profiler3:/usr/share/netbeans/6.7.1/bin/../ruby2:/usr/share/netbeans/6.7.1/bin/../python1:/usr/share/netbeans/6.7.1/bin/../php1:/usr/share/netbeans/6.7.1/bin/../visualweb2:/usr/share/netbeans/6.7.1/bin/../soa2:/usr/share/netbeans/6.7.1/bin/../identity2:/usr/share/netbeans/6.7.1/bin/../uml6:/usr/share/netbeans/6.7.1/harness:/usr/share/netbeans/6.7.1/bin/../cnd2:/usr/share/netbeans/6.7.1/bin/../dlight1:/usr/share/netbeans/6.7.1/bin/../groovy1:/usr/share/netbeans/6.7.1/bin/../extra:/usr/share/netbeans/6.7.1/bin/../javafx2: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -J-Xmx400m -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
sam 9509 9371 2 20:01 ? 00:01:08 /usr/lib/jvm/java-6-sun/bin/java -Djdk.home=/usr/lib/jvm/java-6-sun -Djava.library.path=/usr/lib/jni -classpath /usr/share/netbeans/6.7.1/platform10/lib/boot.jar:/usr/share/netbeans/6.7.1/platform10/lib/org-openide-modules.jar:/usr/share/netbeans/6.7.1/platform10/lib/org-openide-util.jar:/usr/lib/jvm/java-6-sun/lib/dt.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar -Dnetbeans.system_http_proxy=DIRECT -Dnetbeans.system_http_non_proxy_hosts= -Dnetbeans.dirs=/usr/share/netbeans/6.7.1/nb6.7:/usr/share/netbeans/6.7.1/bin/../ergonomics1:/usr/share/netbeans/6.7.1/ide11:/usr/share/netbeans/6.7.1/java2:/usr/share/netbeans/6.7.1/bin/../xml2:/usr/share/netbeans/6.7.1/apisupport1:/usr/share/netbeans/6.7.1/bin/../webcommon1:/usr/share/netbeans/6.7.1/bin/../websvccommon1:/usr/share/netbeans/6.7.1/bin/../enterprise5:/usr/share/netbeans/6.7.1/bin/../mobility8:/usr/share/netbeans/6.7.1/bin/../profiler3:/usr/share/netbeans/6.7.1/bin/../ruby2:/usr/share/netbeans/6.7.1/bin/../python1:/usr/share/netbeans/6.7.1/bin/../php1:/usr/share/netbeans/6.7.1/bin/../visualweb2:/usr/share/netbeans/6.7.1/bin/../soa2:/usr/share/netbeans/6.7.1/bin/../identity2:/usr/share/netbeans/6.7.1/bin/../uml6:/usr/share/netbeans/6.7.1/harness:/usr/share/netbeans/6.7.1/bin/../cnd2:/usr/share/netbeans/6.7.1/bin/../dlight1:/usr/share/netbeans/6.7.1/bin/../groovy1:/usr/share/netbeans/6.7.1/bin/../extra:/usr/share/netbeans/6.7.1/bin/../javafx2: -Dnetbeans.home=/usr/share/netbeans/6.7.1/platform10 -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Xmx400m -client -Xss2m -Xms32m -XX:PermSize=32m -XX:MaxPermSize=200m -Xverify:none -Dapple.laf.useScreenMenuBar=true -Dsun.java2d.noddraw=true -XX:+HeapDumpOn...

Read more...

Robert Dyer (psybers)
Changed in docky:
status: Incomplete → Confirmed
Revision history for this message
Thiago Bellini (bellini666) wrote :

That happens in Netbeans 6.8 (when fresh installing it) and the one found on Ubuntu's repo (in case, netbeans 6.7.1)

Revision history for this message
Leo Riccio (leoriccio) wrote :
Download full text (3.9 KiB)

Here mine's too:

leo@leo-desktop:/$ ps -ef | grep netbeans
leo 9196 1 0 15:38 ? 00:00:00 /bin/bash /usr/local/netbeans-6.8/bin/../platform11/lib/nbexec --userdir /home/leo/.netbeans/6.8 --jdkhome /usr/local/jdk1.6.0_18 --branding nb --clusters /usr/local/netbeans-6.8/nb6.8:/usr/local/netbeans-6.8/bin/../ergonomics2:/usr/local/netbeans-6.8/ide12:/usr/local/netbeans-6.8/java3:/usr/local/netbeans-6.8/bin/../xml2:/usr/local/netbeans-6.8/apisupport1:/usr/local/netbeans-6.8/bin/../webcommon1:/usr/local/netbeans-6.8/websvccommon1:/usr/local/netbeans-6.8/bin/../enterprise6:/usr/local/netbeans-6.8/bin/../mobility8:/usr/local/netbeans-6.8/profiler3:/usr/local/netbeans-6.8/bin/../ruby2:/usr/local/netbeans-6.8/bin/../python1:/usr/local/netbeans-6.8/bin/../php1:/usr/local/netbeans-6.8/bin/../visualweb2:/usr/local/netbeans-6.8/bin/../soa2:/usr/local/netbeans-6.8/bin/../identity2:/usr/local/netbeans-6.8/bin/../uml6:/usr/local/netbeans-6.8/harness:/usr/local/netbeans-6.8/bin/../cnd3:/usr/local/netbeans-6.8/bin/../dlight2:/usr/local/netbeans-6.8/bin/../groovy2:/usr/local/netbeans-6.8/bin/../extra:/usr/local/netbeans-6.8/bin/../javafx2:/usr/local/netbeans-6.8/bin/../javacard1: -J-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -J-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -J-Xmx402m -J-client -J-Xverify:none -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
leo 9380 9196 2 15:38 ? 00:00:16 /usr/local/jdk1.6.0_18/bin/java -Djdk.home=/usr/local/jdk1.6.0_18 -classpath /home/leo/.netbeans/6.8/lib/org-openide-util.jar:/home/leo/.netbeans/6.8/lib/locale/org-openide-util_ja.jar:/home/leo/.netbeans/6.8/lib/locale/org-openide-util_pt_BR.jar:/home/leo/.netbeans/6.8/lib/locale/org-openide-util_zh_CN.jar:/usr/local/netbeans-6.8/platform11/lib/boot.jar:/usr/local/netbeans-6.8/platform11/lib/org-openide-modules.jar:/usr/local/netbeans-6.8/platform11/lib/locale/boot_ja.jar:/usr/local/netbeans-6.8/platform11/lib/locale/boot_pt_BR.jar:/usr/local/netbeans-6.8/platform11/lib/locale/boot_zh_CN.jar:/usr/local/netbeans-6.8/platform11/lib/locale/org-openide-modules_ja.jar:/usr/local/netbeans-6.8/platform11/lib/locale/org-openide-modules_pt_BR.jar:/usr/local/netbeans-6.8/platform11/lib/locale/org-openide-modules_zh_CN.jar:/usr/local/jdk1.6.0_18/lib/dt.jar:/usr/local/jdk1.6.0_18/lib/tools.jar -Dnetbeans.system_http_proxy=DIRECT -Dnetbeans.system_http_non_proxy_hosts= -Dnetbeans.dirs=/usr/local/netbeans-6.8/nb6.8:/usr/local/netbeans-6.8/bin/../ergonomics2:/usr/local/netbeans-6.8/ide12:/usr/local/netbeans-6.8/java3:/usr/local/netbeans-6.8/bin/../xml2:/usr/local/netbeans-6.8/apisupport1:/usr/local/netbeans-6.8/bin/../webcommon1:/usr/local/netbeans-6.8/websvccommon1:/usr/local/netbeans-6.8/bin/../enterprise6:/usr/local/netbeans-6.8/bin/../mobility8:/usr/local/netbeans-6.8/profiler3:/usr/local/netbeans-6.8/bin/../ruby2:/usr/local/netbeans-6.8/bin/../python1:/usr/local/netbeans-6.8/bin/../php1:/usr/local/netbeans-6.8/bin/../visualweb2:/usr/local/netbeans-6.8/bin/../soa2:/usr/local/netbeans-6.8/bin/../identity2:/usr/local/netbeans-6.8/bin/../uml6:/usr/loc...

Read more...

Revision history for this message
Robert Dyer (psybers) wrote :

This will require remaps, which we have not implemented yet.

Revision history for this message
In , Mrooney-i (mrooney-i) wrote :

Hello, thanks for the wonderful IDE!

One issue however is that NetBeans does not provide a useful WM_CLASS property on Linux, which docks and other tools use to match processes to windows. You can test this by running something like "xprop | grep WM_CLASS", which will turn your cursor into a cross, waiting for a click on a window, such as NetBeans:

$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "java-lang-Thread"

so, it is only possible to know that the window is a Java app, but not that it matches the process "nbexec" for example.

Here are some examples of well-behaved applications:

Chromium: WM_CLASS(STRING) = "chromium-browser", "Chromium-browser"
Firefox: WM_CLASS(STRING) = "Navigator", "Firefox"
Thunderbird: WM_CLASS(STRING) = "Mail", "Thunderbird"
Pidgin: WM_CLASS(STRING) = "Pidgin", "Pidgin"

So, if NetBeans provided an accurate WM_CLASS xprop, it would be very helpful to many applications across Linux desktops!

Revision history for this message
Michael Rooney (mrooney) wrote :

I filed and linked the upstream bug for providing a useful WM_CLASS xprop, if someone on the Docky team could review it for accuracy that would be great, thanks!

Revision history for this message
In , Psybers-q (psybers-q) wrote :

One possible approach is as follows:

Toolkit xToolkit = Toolkit.getDefaultToolkit();
java.lang.reflect.Field awtAppClassNameField = xToolkit.getClass().getDeclaredField("awtAppClassName");
awtAppClassNameField.setAccessible(true);
awtAppClassNameField.set(xToolkit, "NetBeans");

Taken from:
http://elliotth.blogspot.com/2007/02/fixing-wmclass-for-your-java.html

Changed in netbeans:
status: Unknown → Confirmed
Revision history for this message
Robert Dyer (psybers) wrote :

Fixed in rev 1398.

Changed in docky:
status: Confirmed → Fix Committed
assignee: Chris S. (cszikszoy) → Robert Dyer (psybers)
Robert Dyer (psybers)
Changed in docky:
milestone: none → 2.1.0
Revision history for this message
Michael Rooney (mrooney) wrote : Re: [Bug 500101] Re: NetBeans 6.8 create another applet

Alas, this doesn't seem to work for me, after upgrading to the latest
PPA: 2.1.0~bzr1414-0ubuntu1~10.04~dockycore1 and restarting Docky. Also, a
find for remaps.ini doesn't turn up anything, is that getting shipped
somewhere that I can edit it?

Revision history for this message
Robert Dyer (psybers) wrote :

The remaps.ini should be in /usr/share/docky/remaps.ini.

Regardless, you can make a user-specific one at ~/.local/share/docky/remaps.ini and for netbeans you want a remap of:

nbexec=netbeans

Revision history for this message
Robert Dyer (psybers) wrote :

Oh I should note that I did not actually test this for Netbeans, only for Picasa. So this (and the deja dup bug) were just assumed to work, based on the information posted on the bug reports and the fact I know remaps are working.

Michael Rooney (mrooney)
Changed in docky:
status: Fix Committed → Confirmed
Revision history for this message
Robert Dyer (psybers) wrote :

Ok Mr Rooney. You forced me to install NetBeans, for which I am not happy! ;-)

It appears for me anyway the problem is that nb doesnt set the _NET_WM_PID propery on the window. If it did that, like almost every other X app does... then it would work with the existing remap.

The other option is to get them to set a WM_CLASS that would allow us to hack around it similar to other Java apps.

So to summarize, I have done everything I possibly can. It is now up to nb developers.

Changed in docky:
status: Confirmed → Fix Committed
Revision history for this message
Michael Rooney (mrooney) wrote :

Okay, thanks for trying! I am very sad that they have thus far ignored the
bug report to which you contributed a code sample.

Revision history for this message
Javier (javiersmail) wrote :

Hi!

I also have the duplicate icon on netbeans. Hope the netbeans dev team solve it.

Another app that have two icons is blender.

Thanks for your efforts!

Revision history for this message
helder.silva (skandals) wrote :

Still happens in Netbeans 7.0 M2 :(

Revision history for this message
Alexandre Rosenfeld (airmind) wrote :

Just a remark, on Docky 2.0.8, I added "StartupWMClass=java-lang-Thread" to the Netbeans .desktop file and it was working fine, Docky correctly identified the Netbeans window.
However, I upgraded Docky to 2.1.0 (to fix a Thunderbird issue) and now it doesn't identify anymore, even with StartupWMClass.
I know this depends on NB developers, but something changed between 2.0.8 and 2.1.0 that made this matter worse, is there anyway to get the old behavior back?

Revision history for this message
Marcus Carlson (0-launchpad-mejlamej-nu) wrote :

I think that if the things Lennart are hoping for, things will be much easier for us;

"I also tried to talk Andreas Grünbacher into supporting file system user extended attributes in various virtual file systems such as procfs, cgroupfs, sysfs and tmpfs. I hope I convinced him that this would be a good idea, since this would allow setting externally accessible attributes to all kinds of kernel objects, such as processes and devices. This would not only have uses in systemd (where we could easily store all meta information systemd needs to know about a service in the cgroupfs via xattrs, so that systemd could even crash or go away at any time and we still can read all runtime information necessary beyond mere cgrouping from the file system when systemd comes to live again) but also in the desktop environments, so that we could for example attach the human readable application name, an icon or a desktop file to the processes currently running, in a simple way where the data we attach follows the lifecycle of the process itself."

from http://0pointer.de/blog

Revision history for this message
Alexandre Rosenfeld (airmind) wrote :

It is fixed for me using Netbeans 6.9.1 (Sun Java JVM) and Docky 2.1.0 (bzr docky r1703 ppa). Thanks!

Changed in netbeans:
importance: Unknown → Medium
Changed in docky:
status: Fix Committed → Fix Released
Revision history for this message
In , Reinouts-w (reinouts-w) wrote :

Still valid for 7.0RC2 and it's becoming more visible when using Netbeans under Gnome 3.0.
See Gnome bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=647437 .

Revision history for this message
In , Vakuumbarn (vakuumbarn) wrote :

This is even more of a problem running multiple applications based on NetBeans platform, like NetBeans, Sql Developer, VisualVm etc at the same time, where all are presented with the same generic name.

Revision history for this message
In , Saubrecht (saubrecht) wrote :

it seems more like JDK issue to me
but if you think there's a workaround (reflection), a patch is welcome

Revision history for this message
In , Vakuumbarn (vakuumbarn) wrote :

Well, I'd agree it should be fixed in the JDK (see previous link to blog post) but in the meantime it's fixable and would be much appreciated. Point me to the "startup" class or main frame or whatever in the source and I'll try to provide you with a a patch.

Revision history for this message
In , Saubrecht (saubrecht) wrote :

waiting for the patch:) (or the JDK fix...)

Changed in netbeans:
status: Confirmed → Expired
Revision history for this message
In , Ogj (ogj) wrote :

I think it is not unreasonable to ask for this tiny, little fix, which will improve the netbeans appearance on Gnome3-based Linux platforms.

I think the code in Comment#1 should be enough, at least according to other sources on this subject. However, small as it is, the problem for me would be to dive into the netbeans sources. I really have no clue where to start. I'm assuming it would be quite simple for anyone familiar with the source to stick this in at some appropriate place.

Btw, the JDK bug is http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6528430, please do vote for that as well. It is from feb 2007, though, with a very low priority. And besides, it will need changes in netbeans sources anyway. I would not hold my breath for this.

Thanks.

Revision history for this message
In , Jglick (jglick) wrote :

I consider this P2 since it is so obviously wrong when you run NB under GNOME 3: "java-lang-Thread" is displayed prominently at the top of the screen when NB is fronted.

This bug also makes it impossible to create a proper *.desktop file, since you need to set the StartupWMClass property to something NB-specific.

Revision history for this message
In , Jglick (jglick) wrote :

Created attachment 119183
Proposed patch

This patch against NB dev sources works for me on JDK 7u4 in Ubuntu 12.04 in the GNOME 3 shell.

Revision history for this message
In , Jglick (jglick) wrote :
Revision history for this message
In , Reinouts-w (reinouts-w) wrote :

(In reply to comment #9)
> Created attachment 119183 [details]
> Proposed patch
>
> This patch against NB dev sources works for me on JDK 7u4 in Ubuntu 12.04 in
> the GNOME 3 shell.

That's good news -- does it also work with switching between multiple open Netbeans windows (dialogs, etc.) with Alt+` ?

Revision history for this message
In , Jglick (jglick) wrote :

(In reply to comment #11)
> does it also work with switching between multiple open
> Netbeans windows (dialogs, etc.) with Alt+` ?

Yes.

(Note that if you use the AlternateTab shell extension it would not matter anyway, since that operates just by title, not WM class.)

Changed in netbeans:
status: Expired → Confirmed
Revision history for this message
In , Saubrecht (saubrecht) wrote :

core-main 5832261b8434

Thanks for the patch, Jesse!

Revision history for this message
In , Jglick (jglick) wrote :

Is this 71patch3-candidate? Bug symptom does not seriously interfere with IDE unusability but it looks terrible in GNOME 3 - one of the first things you notice when starting the IDE.

Revision history for this message
In , Jglick (jglick) wrote :

BTW there seems to be no particularly good way in the NB Platform to get a general-purpose "application name invariant across versions". In this patch I just use CTL_MainWindow_Title_No_Project with the build number stripped off (*); org.netbeans.modules.keyring.gnome.GnomeProvider does pretty much the same for purposes of the GTK call g_set_application_name. It is not ideal since some version information remains (**) - "NetBeans IDE Dev" or "NetBeans IDE 7.2" or whatever. For Platform apps the problem may or may not exist, depending on whether the developer tries to put variable information in the "Application Title" branding field.

(*) A minor I18N violation in principle but unlikely to ever matter, since the known values of this key either do not use the {0} param at all, or use it only as a suffix " {0}".

(**) Which is why kde.KWalletProvider.getApplicationName hardcodes the name (bug #200657), though in that case hardcoding is actually best since we would prefer to use the same wallet across all NB-based apps.

Revision history for this message
In , Quality-i (quality-i) wrote :

Integrated into 'main-golden', will be available in build *201205110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/5832261b8434
User: S. Aubrecht <email address hidden>
Log: #183739 - provide proper app name on Linux

Changed in netbeans:
status: Confirmed → Fix Released
Revision history for this message
In , Saubrecht (saubrecht) wrote :

in release71_fixes as 3bb933029016

Revision history for this message
In , Quality-i (quality-i) wrote :

Integrated into 'releases', will be available in build *201205151102* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/3bb933029016
User: S. Aubrecht <email address hidden>
Log: #183739 - provide proper app name on Linux

Revision history for this message
In , Ttokoly (ttokoly) wrote :

Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.6.0_32; Java HotSpot(TM) Client VM 20.7-b02
System: Linux version 3.0.0-19-generic running on i386; UTF-8; en_US (nb)

For this version of NB xprop shows now:
WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "NetBeans IDE 7.1.2"

So, works for me and verified :) .

Revision history for this message
In , Jglick (jglick) wrote :

ttokoly - not sure what you are testing, since the fix is not in 7.1.2. It is in 7.2 dev builds, and scheduled for 7.1.3. For 7.1.2 you should still see the bug:

WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "java-lang-Thread"

Revision history for this message
In , Mmirilovic (mmirilovic) wrote :

(In reply to comment #20)
> ttokoly - not sure what you are testing, since the fix is not in 7.1.2. It is
> in 7.2 dev builds, and scheduled for 7.1.3. For 7.1.2 you should still see the
> bug:
>
> WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "java-lang-Thread"

I expect Tomas tested 7.1.2 + patch3 as we were testing it today ...

Tomas, please confirm.

Revision history for this message
In , Ttokoly (ttokoly) wrote :

Yes, as Marian says - 7.1.2 + patch 3!

Revision history for this message
In , Reinouts-w (reinouts-w) wrote :

Apparently this fix didn't make it to 7.2beta?

Revision history for this message
In , Jglick (jglick) wrote :

(In reply to comment #23)
> Apparently this fix didn't make it to 7.2beta?

No, I think it was made after Beta was branched. Check dev builds.

Revision history for this message
In , Jglick (jglick) wrote :

Note that the fix does not work on the splash screen - just on the IDE window after startup.

Revision history for this message
In , Nedenom-o (nedenom-o) wrote :

Any chance of a backport to 7.2?

Revision history for this message
In , Jglick (jglick) wrote :

nedenom: this fix is already in 7.2. If you observe a problem in 7.2 (or later), file a new bug report with details to reproduce, and link to this one as appropriate.

Revision history for this message
In , Nedenom-o (nedenom-o) wrote :

(In reply to comment #27)
> nedenom: this fix is already in 7.2. If you observe a problem in 7.2 (or
> later), file a new bug report with details to reproduce, and link to this one
> as appropriate.

OK, sorry, I was confused by the previous comments about it being included only in 7.1.2 + patch 3. I was looking for a fix for the double launcher icon problem, and I thought this was it, but Netbeans 7.2 still has a double icon by default.

I now included the following line in my netbeans-7.2.desktop file:
StartupWMClass=NetBeans IDE 7.2

That solves the double icon problem. I think the installer should have done this automatically, but I guess that is a separate issue...

Anyway, thanks for fixing this property!

Revision history for this message
In , Saubrecht (saubrecht) wrote :

(In reply to comment #28)
>
> That solves the double icon problem. I think the installer should have done
> this automatically, but I guess that is a separate issue...

Please file a new issue if you want this fixed, thanks.

Changed in netbeans:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.