Skip to content

Commit

Permalink
experimental option trayIcon.force for unsupported platforms. java 1.…
Browse files Browse the repository at this point in the history
…6 needed

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5936 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
lotus committed May 9, 2009
1 parent ea27853 commit bad7ce9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions defaults/yacy.init
Expand Up @@ -482,6 +482,7 @@ browserPopUpApplication=firefox

# defines if the YaCy icon appears in the system tray on supported platforms
trayIcon=true
trayIcon.force=false
tray.label=YaCy

# index sharing attributes: by default, sharing is on.
Expand Down
1 change: 1 addition & 0 deletions source/de/anomic/plasma/plasmaSwitchboardConstants.java
Expand Up @@ -521,6 +521,7 @@ public final class plasmaSwitchboardConstants {
* system tray
*/
public static final String TRAY_ICON_ENABLED = "trayIcon";
public static final String TRAY_ICON_FORCED = "trayIcon.force";
public static final String TRAY_LABEL = "tray.label";
public static final String BROWSERINTEGRATION = "browserintegration";
}
2 changes: 1 addition & 1 deletion source/de/anomic/yacy/Tray.java
Expand Up @@ -61,7 +61,7 @@ public static void init(final plasmaSwitchboard par_sb) {
trayLabel = sb.getConfig(plasmaSwitchboardConstants.TRAY_LABEL, "YaCy");
try {
final boolean trayIcon = sb.getConfigBool(plasmaSwitchboardConstants.TRAY_ICON_ENABLED, false);
if (trayIcon && serverSystem.isWindows) {
if (trayIcon && (serverSystem.isWindows || sb.getConfigBool(plasmaSwitchboardConstants.TRAY_ICON_FORCED, false))) {
System.setProperty("java.awt.headless", "false");

if(nativeTrayIcon.isSupported()) {
Expand Down

0 comments on commit bad7ce9

Please sign in to comment.