Added WINESERVER environment variable to allow overriding the normal

server search sequence.
This commit is contained in:
Alexandre Julliard 2000-09-10 03:24:28 +00:00
parent 46b8c24f9c
commit 50097a0ce8
1 changed files with 8 additions and 0 deletions

View File

@ -376,6 +376,14 @@ static void start_server( const char *oldcwd )
if (pid == -1) fatal_perror( "fork" );
if (!pid)
{
/* if server is explicitly specified, use this */
if ((p = getenv("WINESERVER")))
{
execl( p, "wineserver", NULL );
fatal_perror( "could not exec the server '%s'\n"
" specified in the WINESERVER environment variable", p );
}
/* first try the installation dir */
execl( BINDIR "/wineserver", "wineserver", NULL );