JDK-8325914 : SystemTray: get Gnome Shell version property via the DBUS API
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 22,23
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: linux
  • Submitted: 2024-02-15
  • Updated: 2024-02-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23Unresolved
Related Reports
Relates :  
Description
JDK-8322750 gets Gnome Shell version with ProccessBuilder.
There is a much cleaner way using the DBUS API.

https://bugs.openjdk.org/secure/attachment/108275/SystemTrayTests.patch


We can also move the check out of XSystemTrayPeer to XToolkit.createTrayIcon(return null peer if not supported)

Also, we should recheck the Gnome shell version range again which is used to disable SystemTray support.
We should also exclude this check on Wayland, as it is not affected by this bug.