* 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());
|
||||
} else if (isUbuntuApp()) {
|
||||
// Ubuntu specific configuration
|
||||
frame.setIconImages(ResourceManager.getApplicationIcons());
|
||||
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());
|
||||
} else {
|
||||
// Windows / Linux specific configuration
|
||||
frame.setIconImages(ResourceManager.getApplicationIcons());
|
||||
|
|
Loading…
Reference in New Issue