From ba6c1ea66dcd1ca731d9b2e5bfd046b367d38ab0 Mon Sep 17 00:00:00 2001 From: phh Date: Fri, 22 Feb 2019 18:02:57 +0000 Subject: [PATCH] 8215364: JavaFX crashes on Ubuntu 18.04 with Wayland while using Swing-FX interop Summary: Set the gtk backend to x11 on all systems Reviewed-by: prr, kcr --- src/solaris/native/sun/xawt/XToolkit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/solaris/native/sun/xawt/XToolkit.c b/src/solaris/native/sun/xawt/XToolkit.c index 58ef49f59..2425bf43a 100644 --- a/src/solaris/native/sun/xawt/XToolkit.c +++ b/src/solaris/native/sun/xawt/XToolkit.c @@ -154,6 +154,10 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { jvm = vm; + + //Set the gtk backend to x11 on all the systems + putenv("GDK_BACKEND=x11"); + return JNI_VERSION_1_2; } -- GitLab