RFR: 8322750: Test "api/java_awt/interactive/SystemTrayTests.html" failed because A blue ball icon is added outside of the system tray
Alexander Zvegintsev
azvegint at openjdk.org
Thu Feb 15 01:16:20 UTC 2024
There is an issue displaying the xembed icons in the appIndicators area which are not displayed correctly with certain Gnome Shell versions.
It was already fixed [externally](https://gitlab.gnome.org/3v1n0/gnome-shell/-/commit/20a81d786697f40880e81d867453b1bad9524ec1).
However this is still a blocker on systems that have not received this fix, so this fix disables a SystemTray's support for Gnome Shell < 45 versions.
Gnome Shell version detection has the following logic:
* execute `/usr/bin/gnome-shell --version`
* parse its output to extract the major version
* disable the SystemTray support if the version < 45 or parsing failed for some reason
The numbering convention changed with the introduction of Gnome Shell 40.
The old numbering convention is also handled correctly(e.g. [3.38.1] (https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/d15f6c75b19be1e32ec24165f09b3e74afaf7395/NEWS#L1134) )
This is a simplified fix to make it easier to backport it.
The improved solution will be to [receive the ShellVersion property via the DBUS API](https://unix.stackexchange.com/questions/73212/how-to-get-the-gnome-version/73225#73225)
-------------
Commit messages:
- prevent available modification
- initial
Changes: https://git.openjdk.org/jdk/pull/17860/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17860&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8322750
Stats: 91 lines in 2 files changed: 84 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/17860.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17860/head:pull/17860
PR: https://git.openjdk.org/jdk/pull/17860
More information about the client-libs-dev
mailing list