forked from I2P_Developers/i2p.i2p
DTG: Enable by default on Windows
This commit is contained in:
@ -214,7 +214,10 @@ public class ConfigServiceHandler extends FormHandler {
|
||||
* @since 0.9.26
|
||||
*/
|
||||
public boolean isSystrayEnabled() {
|
||||
return _context.getBooleanProperty(RouterConsoleRunner.PROP_DTG_ENABLED);
|
||||
// default false for now, except on non-service windows
|
||||
String sdtg = _context.getProperty(RouterConsoleRunner.PROP_DTG_ENABLED);
|
||||
return Boolean.parseBoolean(sdtg) ||
|
||||
(sdtg == null && SystemVersion.isWindows());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -281,8 +281,10 @@ public class RouterConsoleRunner implements RouterApp {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
// default false for now
|
||||
boolean desktopguiEnabled = _context.getBooleanProperty(PROP_DTG_ENABLED);
|
||||
// default false for now, except on non-service windows
|
||||
String sdtg = _context.getProperty(PROP_DTG_ENABLED);
|
||||
boolean desktopguiEnabled = Boolean.parseBoolean(sdtg) ||
|
||||
(sdtg == null && SystemVersion.isWindows());
|
||||
if (desktopguiEnabled) {
|
||||
//Check if we are in a headless environment, set properties accordingly
|
||||
System.setProperty("java.awt.headless", Boolean.toString(GraphicsEnvironment.isHeadless()));
|
||||
|
Reference in New Issue
Block a user