Added fallback appindicator check for GTK2
This commit is contained in:
parent
f437c1ddf9
commit
8ed9efa289
@ -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 we are GTK2, change the order we check and load libraries
|
||||||
|
|
||||||
if (Gtk.isGtk2) {
|
if (Gtk.isGtk2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user