diff --git a/src/dorkbox/systemTray/jna/linux/Gtk.java b/src/dorkbox/systemTray/jna/linux/Gtk.java index 5696609..f7630f1 100644 --- a/src/dorkbox/systemTray/jna/linux/Gtk.java +++ b/src/dorkbox/systemTray/jna/linux/Gtk.java @@ -57,6 +57,9 @@ class Gtk { private static final boolean alreadyRunningGTK; + // when debugging the EDT, we need a longer timeout. + private static final boolean debugEDT = false; + // This is required because the EDT needs to have it's own value for this boolean, that is a different value than the main thread private static ThreadLocal isDispatch = new ThreadLocal() { @Override @@ -66,7 +69,8 @@ class Gtk { } }; - private static final int TIMEOUT = 2; + // timeout is in seconds + private static final int TIMEOUT = debugEDT ? 10000000 : 2; // objdump -T /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 | grep gtk // objdump -T /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 | grep gtk