Project

General

Profile

Feature #452 » 0015-AppImage-Set-server-path.patch

S3_1 - Marko Lindqvist, 04/14/2024 10:46 AM

View differences:

client/connectdlg_common.c
dup2(fd, 0);
}
/* these won't return on success */
/* These won't return on success */
#ifdef FREECIV_APPIMAGE
char srvpath[2048];
fc_snprintf(srvpath, sizeof(srvpath), "%s/usr/bin/freeciv-server",
getenv("APPDIR"));
execvp(srvpath, argv);
#else /* FREECIV_APPIMAGE */
#ifdef FREECIV_DEBUG
/* Search under current directory (what ever that happens to be)
* only in debug builds. This allows running freeciv directly from build
......
execvp(BINDIR "/freeciv-server", argv);
execvp("freeciv-server", argv);
#endif /* FREECIV_WEB */
#endif /* FREECIV_APPIMAGE */
/* This line is only reached if freeciv-server cannot be started,
* so we kill the forked process.
(2-2/2)