Added support for a WINELOADER environment variable which allows the
specification of a different binary loader.
This commit is contained in:
parent
0e236a1f37
commit
51e4657694
|
@ -622,7 +622,12 @@ static void exec_wine_binary( char **argv, char **envp )
|
|||
{
|
||||
const char *path, *pos, *ptr;
|
||||
|
||||
/* first try bin directory */
|
||||
/* first, try for a WINELOADER environment variable */
|
||||
argv[0] = getenv("WINELOADER");
|
||||
if (argv[0])
|
||||
execve( argv[0], argv, envp );
|
||||
|
||||
/* next, try bin directory */
|
||||
argv[0] = BINDIR "/wine";
|
||||
execve( argv[0], argv, envp );
|
||||
|
||||
|
|
Loading…
Reference in New Issue