Add an option to not use systray

This commit is contained in:
Laurent Clouet
2016-04-28 19:37:05 +02:00
parent 783475b7fa
commit 718316cb38
2 changed files with 22 additions and 15 deletions

View File

@@ -88,6 +88,9 @@ public class Worker {
@Option(name = "--version", usage = "Display application version", required = false, handler = VersionParameterHandler.class)
private VersionParameterHandler versionHandler;
@Option(name = "--no-systray", usage = "Don't use systray", required = false)
private boolean no_systray = false;
public static void main(String[] args) {
new Worker().doMain(args);
}
@@ -279,7 +282,7 @@ public class Worker {
System.out.println("You should set a DISPLAY or use a text ui (with -ui " + GuiTextOneLine.type + " or -ui " + GuiText.type + ").");
System.exit(3);
}
gui = new GuiSwing();
gui = new GuiSwing(no_systray == false);
break;
}
Client cli = new Client(gui, config, server);