* enable menu bar only if jayatanaag agent is setup

This commit is contained in:
Reinhard Pointner 2015-05-18 15:41:26 +00:00
parent 14e57c42bd
commit d8d7b80474
1 changed files with 4 additions and 1 deletions

View File

@ -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());