Commit 50097a0c authored by Alexandre Julliard's avatar Alexandre Julliard

Added WINESERVER environment variable to allow overriding the normal

server search sequence.
parent 46b8c24f
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment