i2psnark standalone: Skip browser launch if so configured

This commit is contained in:
zzz
2022-05-26 12:29:35 -04:00
parent a6ad525197
commit a74f36358f

View File

@ -77,8 +77,11 @@ public class RunStandalone {
try {
Thread.sleep(1000);
} catch (InterruptedException ie) {}
UrlLauncher launch = new UrlLauncher(_context, null, new String[] { url } );
launch.startup();
String p = _context.getProperty("routerconsole.browser");
if (!("/bin/false".equals(p) || "NUL".equals(p))) {
UrlLauncher launch = new UrlLauncher(_context, null, new String[] { url } );
launch.startup();
}
} catch (Exception e) {
e.printStackTrace();
}