openjdk : SystemTray.isSupported() bug

Bug #300948 reported by ®om
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Invalid
Low
Travis Watkins
openjdk-6 (Ubuntu)
Fix Released
Undecided
compiz packagers

Bug Description

SystemTray.isSupported()
returns false with openjdk using gnome + compiz, while it returns true if I use metacity instead of compiz.

This problem was known is sun-java, and should be corrected in java 6 update 10 : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6438179
"Specifically, it returns true only if the window manager is named "Metacity" or "KWin".

As a result, impossible to make a java program which use systray for people using compiz :(

Related branches

Revision history for this message
Lukáš Zapletal (lzap) wrote :

Happens. We will have to wait until Sun or Compiz team will fix it. This is not Ubuntu bug.

If compiz guyz wont know the bug report will be probably closed.

Changed in openjdk-6 (Ubuntu):
assignee: nobody → compiz packagers (compiz)
Revision history for this message
Matthias Klose (doko) wrote :

Please could the compiz packagers have a look at this code? Search for the files awt_wm.c XWM.java, XTrayIconPeer.java and XWindowPeer.java. All these have explicit code to handle Metacity. Please send a patch to handle Compiz as well.

Or should this handled on the compiz side?

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Changed in compiz (Ubuntu):
assignee: nobody → Travis Watkins (amaranth)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Travis Watkins (amaranth) wrote :

Just make it check for compiz as well whenever it checks for metacity. I have no interest in Java so I'm not going to try to make the patch myself.

Changed in compiz (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Maxim Levitsky (maximlevitsky) wrote :

Now that you made a decision to remove closed-source java, at least fix that!

Revision history for this message
Matthias Klose (doko) wrote :

sun-java6 wasn't remove, it did move to the partner archive

Revision history for this message
Maxim Levitsky (maximlevitsky) wrote :

Ok. but still, to fix that its a matter of changing few lines. Why its not fixed yet?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b18-1.8-0ubuntu1

---------------
openjdk-6 (6b18-1.8-0ubuntu1) lucid; urgency=low

  * Update IcedTea6 to the icedtea6-1.8 release.
  * Fix builds on Ubuntu/dapper and Debian/lenny.
  * On hppa, configure --without-rhino --disable-plugin.
  * Fix Hitachi SH configury. Closes: #575346.
  * Start a window manager when running the tests. Prefer metacity,
    as more tests pass with it.
  * Let XToolkit.isTraySupported() return true, if Compiz is running.
    Works around sun#6438179. LP: #300948.
  * Make <java_home>/jre/lib/security/nss.cfg a config file.
  * Fail in the configuration of the packages, if /proc is not mounted.
    java currently uses tricks to find its own shared libraries depending
    on the path of the binary. Will be changed in OpenJDK7. Closes: #576453.
  * Fix PR icedtea/469, testsuite failures with the NSS based security
    provider. LP: #556549.
  * Do not pass LD_LIBRARY_PATH from the plugin to the java process.
    While libnss3.so gets loaded from /usr/lib, the dependent libraries
    are loaded from MOZILLA_FIVE_HOME (See #561216 for the wrong firefox
    config). LP: #561124.
    Closes as well: LP: #551328, #554909, #560829, #549010, #553452.
  * Always build shark with hs14.
 -- Matthias Klose <email address hidden> Wed, 14 Apr 2010 01:53:33 +0200

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Fix Released
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.