* enable menu bar only if jayatanaag agent is setup
This commit is contained in:
parent
14e57c42bd
commit
d8d7b80474
|
@ -274,8 +274,11 @@ public class Main {
|
||||||
MacAppUtilities.setDefaultMenuBar(FileBotMenuBar.createHelp());
|
MacAppUtilities.setDefaultMenuBar(FileBotMenuBar.createHelp());
|
||||||
} else if (isUbuntuApp()) {
|
} else if (isUbuntuApp()) {
|
||||||
// Ubuntu specific configuration
|
// Ubuntu specific configuration
|
||||||
|
String options = System.getenv("JAVA_TOOL_OPTIONS");
|
||||||
|
if (options != null && options.contains("jayatanaag.jar")) {
|
||||||
|
frame.setJMenuBar(FileBotMenuBar.createHelp()); // menu should be rendered via JAyatana on Ubuntu 15.04 and higher
|
||||||
|
}
|
||||||
frame.setIconImages(ResourceManager.getApplicationIcons());
|
frame.setIconImages(ResourceManager.getApplicationIcons());
|
||||||
frame.setJMenuBar(FileBotMenuBar.createHelp()); // menu should be rendered via JAyatana on Ubuntu 15.04 and higher
|
|
||||||
} else {
|
} else {
|
||||||
// Windows / Linux specific configuration
|
// Windows / Linux specific configuration
|
||||||
frame.setIconImages(ResourceManager.getApplicationIcons());
|
frame.setIconImages(ResourceManager.getApplicationIcons());
|
||||||
|
|
Loading…
Reference in New Issue