mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
Added the option to disable desktopgui.
This commit is contained in:
@@ -329,7 +329,9 @@ public class RouterConsoleRunner {
|
||||
//TODO: move away from routerconsole into a separate application.
|
||||
//ApplicationManager?
|
||||
VersionComparator v = new VersionComparator();
|
||||
if(v.compare(System.getProperty("java.runtime.version"), "1.6") >= 0) {
|
||||
String desktopguiEnabled = I2PAppContext.getGlobalContext().getProperty("desktopgui.enabled");
|
||||
int recentJava = v.compare(System.getProperty("java.runtime.version"), "1.6");
|
||||
if(recentJava >= 0 && (desktopguiEnabled == null || desktopguiEnabled.equalsIgnoreCase("true"))) {
|
||||
String[] args = new String[0];
|
||||
net.i2p.desktopgui.Main.beginStartup(args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user