Fix headless issue without reboot.

This commit is contained in:
mathiasdm
2011-02-14 17:12:12 +00:00
parent 581cd72032
commit a6686cbed4
4 changed files with 18 additions and 47 deletions

View File

@@ -56,9 +56,10 @@ public class Main {
*/
public static void beginStartup(String[] args) {
try {
String headless = RouterManager.getRouterContext().getProperty("router.isHeadless");
String headless = System.getProperty("java.awt.headless");
boolean isHeadless = Boolean.parseBoolean(headless);
if(isHeadless) {
log.warn("Headless environment: not starting desktopgui!");
return;
}
}