From 1abe7b60ab029a47c2e6340d5fec1c47ed5d099f Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 18 Jul 2017 16:40:15 +0200 Subject: [PATCH] Added exception to GTK load ordering for Kali (it has rendering issues with GTK3. GTK2 looks just fine) --- src/dorkbox/util/jna/linux/GtkLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dorkbox/util/jna/linux/GtkLoader.java b/src/dorkbox/util/jna/linux/GtkLoader.java index d855e4c..496bae5 100644 --- a/src/dorkbox/util/jna/linux/GtkLoader.java +++ b/src/dorkbox/util/jna/linux/GtkLoader.java @@ -75,6 +75,12 @@ class GtkLoader { _isLoaded = true; } + + if (OSUtil.Linux.isKali()) { + // Kali linux has some WEIRD graphical oddities via GTK3. GTK2 looks just fine. + shouldUseGtk2 = true; + } + // we can force the system to use the swing indicator, which WORKS, but doesn't support transparency in the icon. However, there // are certain GTK functions we might want to use (even if we are Swing or AWT), so we load GTK anyways...