char *gameCopyFilename, *gamePasteFilename;
Boolean saveSettingsOnExit;
char *settingsFileName;
+char gamesDir[MSG_SIZ], positionsDir[MSG_SIZ], textureDir[MSG_SIZ], bookDir[MSG_SIZ], piecesDir[MSG_SIZ];
static int
LoadGamePopUp (FILE *f, int gameNumber, char *title)
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);