temporary disabled tray because of flaws on only-shell-linux

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4996 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
lotus 2008-07-13 08:41:39 +00:00
parent adeb881288
commit d77ed28e2f

View File

@ -834,20 +834,20 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
setLog(new serverLog("PLASMA"));
if (applyPro) this.log.logInfo("This is the pro-version of YaCy");
// make system tray
try {
final boolean trayIcon = getConfig("trayIcon", "false").equals("true");
if (trayIcon) {
System.setProperty("java.awt.headless", "false");
yacytray = new yacyTray(this, false);
}
} catch (Exception e) {
try{
yacytray.removeTray();
} finally {
System.setProperty("java.awt.headless", "true");
}
}
// make system tray TODO: enable
// try {
// final boolean trayIcon = getConfig("trayIcon", "false").equals("true");
// if (trayIcon) {
// System.setProperty("java.awt.headless", "false");
// yacytray = new yacyTray(this, false);
// }
// } catch (Exception e) {
// try{
// yacytray.removeTray();
// } finally {
// System.setProperty("java.awt.headless", "true");
// }
// }
// remote proxy configuration
httpdProxyHandler.setRemoteProxyConfig(httpRemoteProxyConfig.init(this)); // TODO refactoring
@ -1659,7 +1659,7 @@ public final class plasmaSwitchboard extends serverAbstractSwitch<IndexingStack.
crawlQueues.close();
log.logConfig("SWITCHBOARD SHUTDOWN STEP 3: sending termination signal to database manager (stand by...)");
webIndex.close();
if(System.getProperty("java.awt.headless") == "false") yacytray.removeTray();
// if(System.getProperty("java.awt.headless") == "false") yacytray.removeTray(); TODO: enable
log.logConfig("SWITCHBOARD SHUTDOWN TERMINATED");
}