Support for Java applications

Bug #659931 reported by Koen
This bug report is a duplicate of:  Bug #618587: eclipse does not work with appmenu. Edit Remove
296
This bug affects 65 people
Affects Status Importance Assigned to Milestone
Application Menu Indicator
Confirmed
Medium
Ted Gould
Audacity
New
Undecided
Unassigned
Eclipse
Confirmed
Undecided
Unassigned
indicator-appmenu (Ubuntu)
Confirmed
Medium
Ted Gould
Natty
Confirmed
Medium
Ted Gould

Bug Description

i reinstalled my netbook with ubuntu10.10 netbook remix
i need to use tuxguitar, and the unity interface screws up the menu's ( file, edit, ect.. ) making whole tuxguitar useless.
according to this post: http://ubuntuforums.org/showthread.php?p=9951110 it also is a problem for more java-based apps.

for me it is a reason the switch back to 10.04, but before i do that, i will provide the help i can give.

Revision history for this message
Koen (gorgabal) wrote :
Revision history for this message
Leo Arias (elopio) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in unity.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://help.ubuntu.com/community/ReportingBugs.

affects: ubuntu → unity (Ubuntu)
affects: unity (Ubuntu) → appmenu-gtk (Ubuntu)
Revision history for this message
David Barth (dbarth) wrote :

This is an appmenu related issue. And java apps are usually not supported unless they use the native GTK toolkit.

In this case, the solution is to disable appmenu for the application you need to start:
(from the command line)

$ UBUNTU_MENUPROXY= tuxguitar (or whatever the application name is)

To permanently disable appmenu for tuxguitar, the easiest way is probably to unset the UBUNTU_MENUPROXY env. variable directly in the wrapper script that is used to start the java application itself.

Revision history for this message
Koen (gorgabal) wrote :

@David Barth

thank you very much,that was very usefull information. now i can still use ubuntu 10.10

Omer Akram (om26er)
affects: appmenu-gtk (Ubuntu) → indicator-appmenu (Ubuntu)
affects: appmenu-gtk → indicator-appmenu
papukaija (papukaija)
tags: added: ubuntu-une
removed: useless
tags: removed: menu tuxguitar
Changed in indicator-appmenu (Ubuntu):
status: New → Confirmed
summary: - {netbookremix} unity makes java useless
+ Unity makes java useless
Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Unity makes java useless

David, saying that java applications are not supported and that users need to export a variable manually is not a solution, that needs to be addressed correctly

Changed in indicator-appmenu (Ubuntu):
assignee: nobody → Canonical Desktop Experience Team (canonical-dx-team)
Changed in indicator-appmenu:
assignee: nobody → Canonical Desktop Experience Team (canonical-dx-team)
Jorge Castro (jorge)
Changed in indicator-appmenu:
status: New → Confirmed
summary: - Unity makes java useless
+ Support for Java applications
Revision history for this message
David Barth (dbarth) wrote :

Ultimately this is a bug in the menu items interceptor code that translates menuitems calls into their dbusmenu equivalents.
I've looked quickly into the SWT code and they really seem to be doing "normal" calls to the GTK menu system, albeit using a lot of dynamic updates to push menus.

It would be worth using a sample SWT program as a test case to improve the robustness of the dbusmenu-gtk code.

Changed in indicator-appmenu (Ubuntu):
assignee: Canonical Desktop Experience Team (canonical-dx-team) → Ted Gould (ted)
Changed in indicator-appmenu:
assignee: Canonical Desktop Experience Team (canonical-dx-team) → Ted Gould (ted)
Changed in indicator-appmenu (Ubuntu):
importance: Undecided → Medium
Changed in indicator-appmenu:
importance: Undecided → Medium
Changed in indicator-appmenu (Ubuntu):
milestone: none → natty-alpha-3
Revision history for this message
David Barth (dbarth) wrote :

I've heard of patches for SWT support on #ayatana though. Ted: can you investigate with Cody?

And just a note if all else fails, that dl_iterate_phdr function can be used to inspect the symbol table at runtime and could help blacklist apps linked with an SWT lib at runtime.

Revision history for this message
Michael Terry (mterry) wrote :

I think this is a dup of bug 618587? I attached a test case file there.

Blazej Ksycki (xyc)
Changed in eclipse:
status: New → Confirmed
Revision history for this message
Ilmari Vacklin (wolverian) wrote :

FWIW, this bug seems to be about *all* Java apps, while #618587, which this bug is marked as a dup of, is specifically about Eclipse (or SWT apps).

Does anyone have an idea whether the work going into supporting SWT will benefit Swing apps (e.g. NetBeans) as well? Should I submit a separate bug about that?

Revision history for this message
Jesse Glick (jesse-glick) wrote :

I doubt that changes made for SWT would be useful for Swing-based apps, so a separate bug report would be in order. See http://youtrack.jetbrains.net/issue/IDEA-69424 for example. Potentially the Swing L&F could detect that it was running on Unity and create proxy GTK menus; the Mac OS X JRE does exactly this and it works for NetBeans at least.

Revision history for this message
Jesse Glick (jesse-glick) wrote :

I filed bug #984916 for Swing integration.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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