* }
*/
}
else {
try {
GuiController guiController = new GuiController(preferences, profileManager, sync);
guiController.startGui(line.hasOption('m'));
if (!line.hasOption('P') && !preferences.getHelpShown() && (null == System.getProperty("net.sourceforge.fullsync.skipHelp"))) {
preferences.setHelpShown(true);
preferences.save();
File f = new File("docs/manual/manual.html");
if (f.exists()) {
GuiController.launchProgram(f.getAbsolutePath());
}
}
if (listenerStarupException != null) {
ExceptionHandler.reportException("Unable to start incoming connections listener.", listenerStarupException);
}
if (preferences.getAutostartScheduler()) {
profileManager.startScheduler();
}
guiController.run();
guiController.disposeGui();
}
catch (Exception ex) {
ExceptionHandler.reportException(ex);
}
finally {