From e005c60d7843ec2dab90239b77fa791b95df5c30 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 17 Jan 2022 15:20:30 +0100 Subject: Improved wine detection --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 7df7d175..9a9f1aba 100755 --- a/src/main.c +++ b/src/main.c @@ -954,7 +954,9 @@ int main(int argc, const char **argv, const char **env) { // check if this is wine if(!strcmp(prog, "wine64") || !strcmp(prog, "wine64-development") - || (strlen(prog)>5 && !strcmp(prog+strlen(prog)-strlen("/wine64"), "/wine64"))) { + || !strcmp(prog, "wine") + || (strlen(prog)>5 && !strcmp(prog+strlen(prog)-strlen("/wine"), "/wine")) + || (strlen(prog)>7 && !strcmp(prog+strlen(prog)-strlen("/wine64"), "/wine64"))) { const char* prereserve = getenv("WINEPRELOADRESERVE"); printf_log(LOG_INFO, "BOX64: Wine64 detected, WINEPRELOADRESERVE=\"%s\"\n", prereserve?prereserve:""); if(wine_preloaded) -- cgit 1.4.1