From e38071475abb4958cb7a4a39f21640c141968829 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 14 Feb 2016 17:49:02 +0100 Subject: [PATCH] Removed checked expections (now they are unchecked). Added better detection of JavaFX. --- Dorkbox-Util/src/dorkbox/util/jna/linux/GtkSupport.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dorkbox-Util/src/dorkbox/util/jna/linux/GtkSupport.java b/Dorkbox-Util/src/dorkbox/util/jna/linux/GtkSupport.java index 379f69c..53063e7 100644 --- a/Dorkbox-Util/src/dorkbox/util/jna/linux/GtkSupport.java +++ b/Dorkbox-Util/src/dorkbox/util/jna/linux/GtkSupport.java @@ -66,6 +66,10 @@ class GtkSupport { boolean shouldUseGtk2 = GtkSupport.FORCE_GTK2 || JAVAFX_COMPATIBILITY_MODE; alreadyRunningGTK = JAVAFX_COMPATIBILITY_MODE; + + // for more info on JavaFX: https://docs.oracle.com/javafx/2/system_requirements_2-2-3/jfxpub-system_requirements_2-2-3.htm + // from the page: JavaFX 2.2.3 for Linux requires gtk2 2.18+. + // in some cases, we ALWAYS want to try GTK2 first if (shouldUseGtk2) { try {