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 &",
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);