mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 15:22:39 +00:00
DTG: Enable by default on Windows
This commit is contained in:
1 parent
1376237e08
commit
b123720fa3
2 files changed
+8
-3
No files matched your search
@@ -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