<Swing Dev> RFR [13] 8226783: GTK is not being returned as the System L&F on Gnome.

Phil Race philip.race at oracle.com
Wed Jun 26 20:31:34 UTC 2019


Bug: https://bugs.openjdk.java.net/browse/JDK-8226783
Webrev: http://cr.openjdk.java.net/~prr/8226783/

This fix is for JDK 13 to fix a regression in a recent build of JDK 13.

We use the presence of an environment variable

GNOME_DESKTOP_SESSION_ID

to determine if GTK should be the System L&F on Linux & Solaris

Due to a typo when relocating this from native code to Java code
JDK 13 fails to find it and defaults to Metal as the system L&F - this
is what we do on a KDE desktop for example.

I've added a test that would have helped spot this outage earlier
and should help in a similar future situation.

-phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20190626/bc876150/attachment.html>


More information about the swing-dev mailing list