From 51e46576947e54e0184e5e17dd8b26ab07acea32 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Wed, 25 Oct 2000 20:28:22 +0000 Subject: [PATCH] Added support for a WINELOADER environment variable which allows the specification of a different binary loader. --- scheduler/process.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scheduler/process.c b/scheduler/process.c index 795527be6f..730ce63e56 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -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 ); -- 2.32.0.93.g670b81a890