Ubuntu

Support for Java applications

Reported by Koen on 2010-10-13
This bug report is a duplicate of:  Bug #618587: eclipse does not work with appmenu. Edit Remove
290
This bug affects 63 people
Affects Status Importance Assigned to Milestone
Application Menu Indicator
Medium
Ted Gould
Audacity
New
Undecided
Unassigned
Eclipse
Confirmed
Undecided
Unassigned
indicator-appmenu (Ubuntu)
Medium
Ted Gould
Natty
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.

Koen (gorgabal) wrote :
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)
Didier Roche (didrocks) on 2010-10-14
affects: unity (Ubuntu) → appmenu-gtk (Ubuntu)
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.

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) on 2010-12-04
affects: appmenu-gtk (Ubuntu) → indicator-appmenu (Ubuntu)
affects: appmenu-gtk → indicator-appmenu
papukaija (papukaija) on 2010-12-12
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

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 O. Castro (jorge) on 2011-01-25
Changed in indicator-appmenu:
status: New → Confirmed
summary: - Unity makes java useless
+ Support for Java applications
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
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.

Michael Terry (mterry) wrote :

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

Blazej Ksycki (xyc) on 2011-02-01
Changed in eclipse:
status: New → Confirmed
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?

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.

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  Edit
Everyone can see this information.

Other bug subscribers