Added fallback appindicator check for GTK2

This commit is contained in:
nathan 2016-12-25 20:20:23 +01:00
parent f437c1ddf9
commit 8ed9efa289

View File

@ -175,6 +175,18 @@ class AppIndicator {
}
}
// maybe it's really GTK2 version? who knows...
if (!isLoaded) {
try {
JnaHelper.register("appindicator", AppIndicator.class);
isLoaded = true;
} catch (Throwable e) {
if (SystemTray.DEBUG) {
logger.debug("Error loading library: '{}'. \n{}", "appindicator", e.getMessage());
}
}
}
// If we are GTK2, change the order we check and load libraries
if (Gtk.isGtk2) {