removed gtk theme from OSX app
[xboard.git] / menus.c
diff --git a/menus.c b/menus.c
index 4934a3c..086c9b4 100644 (file)
--- a/menus.c
+++ b/menus.c
@@ -313,7 +313,7 @@ void
 InfoProc ()
 {
     char buf[MSG_SIZ];
-#ifdef __APPLE__
+#ifdef OSXAPP
     snprintf(buf, MSG_SIZ, "%s ./info.command", appData.sysOpen);
 #else
     snprintf(buf, sizeof(buf), "xterm -e info --directory %s --directory . -f %s &",
@@ -1176,6 +1176,7 @@ InstallNewEngine (char *command, char *dir, char *variants, char *protocol)
        snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fd %s", dir);
     if(!strcmp(protocol, "uci"))
        snprintf(buf + strlen(buf), MSG_SIZ - strlen(buf), " -fUCI");
+    if(strstr(firstChessProgramNames, buf)) return; // avoid duplicats
     // append line
     quote = malloc(strlen(firstChessProgramNames) + strlen(buf) + 2);
     sprintf(quote, "%s%s\n", firstChessProgramNames, buf);