Red Hat Bugzilla – Bug 1014448
Java app system tray icons broken in GNOME Shell
Last modified: 2017-04-25 14:14:29 EDT
Description of problem:
Java apps with system tray icons do not work properly with GNOME Shell. See below.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Get and run the http://docs.oracle.com/javase/tutorial/uiswing/misc/systemtray.html demo application
System tray icon shows up in notification area (though only if you open the Activities view and pull down at the bottom of the screen). However the icon seems to be incorrectly scaled (the image is at the top left of the icon instead of being scaled to fill it). Worse, the tooltip and pop-up menu do not work at all. And a useless icon shows up in the running apps list labelled misc-TrayIconDemo.
Tray icon works as expected. No useless icon in apps list.
java-1.8.0-openjdk seems broken as well.
same problem with gnome-shell 3.10.3 and jre7-openjdk 7.u51_2.4.4
Confirmed still an issue in F20.
[tom@dhcppc1 smsapp_pc](master) (13:16:38) $ gnome-shell --version
GNOME Shell 3.10.3
[tom@dhcppc1 smsapp_pc](master) (13:16:38) $ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (fedora-220.127.116.11.fc20-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 20 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.
Still an issue in F22. When running the tray icon demo app, a black square icon appears in the notification list at the bottom left, but it doesn't respond to any mouse clicks.
[ma@fedora-ma ~] $ gnome-shell --version
GNOME Shell 3.16.2
[ma@fedora-ma ~] $ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
[ma@fedora-ma ~] $
Same issue. The icon shows up on the top left instead of the tray most of the time, but not always.
Created attachment 1050382 [details]
A simple test case. The tray icon should be white and on the bottom left but often appears on the top left. This sample was made only to demonstrate the icon placement issue, not the popup menu issue. This was tested in a virtual machine and changing its thread waiting and system ram/cpu changed the chance of the issue occurring unpredictably, some times it would would happen 99% of the time others close to 0%.
Moving to java-1.8.0-openjdk based on comment 6; Fedora no longer has java-1.7.0-openjdk.
if we can get the icon in the upper tray bar, the would solve so many problems. If the menu would work too, would be good. Having it of the left top corner would be a relieve, i tell you :)
No change in F24.
no change in F25
BTW: using cinnamon this does not happen. It's a GNOME ONLY problem.