Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2149024 | 6u10 | Dmitry Cherepanov | P3 | Resolved | Fixed | b08 |
JDK-2197036 | OpenJDK6 | Dmitry Cherepanov | P3 | Resolved | Fixed | b21 |
Instead of determining if the system tray is supported,
isTraySupported() derives its result from the name of the window
manager. Specifically, it returns true only if the window manager is
named "Metacity" or "KWin". Not only is there no requirement that
the window manager be the entity providing the system tray, at least
in the case of Metacity, it really doesn't. This means:
If I use Gnome (complete with panel, which supplies the system
tray) but with an alternate window manager, SystemTray.isSupported()
returns false and I can't use the system tray.
If I use Metacity in an environment where there is no system tray
(e.g. outside of Gnome), SystemTray.isSupported() will incorrectly
return true.
More generally, if I have a fully functional system tray but am not
running one of the above window managers, I can't access it.
This test should be based on the presence of a tray which follows the
System Tray Protocol Specification, not random other factors.
- backported by
-
JDK-2149024 XToolkit.isTraySupported() result has nothing to do with the system tray
- Resolved
-
JDK-2197036 XToolkit.isTraySupported() result has nothing to do with the system tray
- Resolved
- duplicates
-
JDK-6575110 Throws AWTException if add system tray on Gnome Desktop
- Closed
-
JDK-6911762 SystemTray.isSupported() result is only based on window manager name
- Closed
-
JDK-6528437 SystemTray.isSupported() returns false with Xfce
- Closed
-
JDK-6550590 Systray support detection in XToolkit is too simplistic, fails with compiz
- Closed
- relates to
-
JDK-6487080 SystemTray does not report errors when SystemTray is unavailable
- Open
-
JDK-6737722 api/java_awt/TrayIcon/index.html#TrayIconHeadlessMode
- Closed
-
JDK-8062931 The default desktop on Ubuntu has no system tray,some cases failed automatically when add the icon to the system tray
- Closed