[PATCH 0/1] MR2551: Draft: wineboot: Add env variable to hide wait window
Add a new environment variable `WINEHIDEWAIT` to disable configuration wait windows. Useful for wine wrappers that want to keep the UX seamless. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2551
From: Isaac Marovitz <isaacryu(a)icloud.com> --- programs/wineboot/wineboot.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index c05ce580298..b79e33f0e2e 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1495,7 +1495,10 @@ static void update_wineprefix( BOOL force ) if ((process = start_rundll32( inf_path, L"PreInstall", IMAGE_FILE_MACHINE_TARGET_HOST ))) { - HWND hwnd = show_wait_window(); + WCHAR *hide = _wgetenv( L"WINEHIDEWAIT" ); + if (hide != "1") { + HWND hwnd = show_wait_window(); + } for (;;) { MSG msg; @@ -1513,7 +1516,9 @@ static void update_wineprefix( BOOL force ) } else while (PeekMessageW( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessageW( &msg ); } - DestroyWindow( hwnd ); + if (hide != "1") { + DestroyWindow(hwnd); + } } install_root_pnp_devices(); update_user_profile(); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2551
Hi, It looks like your patch introduced the new failures shown below. Please investigate and fix them before resubmitting your patch. If they are not new, fixing them anyway would help a lot. Otherwise please ask for the known failures list to be updated. The full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=131376 Your paranoid android. === debian11 (build log) === ../wine/programs/wineboot/wineboot.c:1520:31: error: ���hwnd��� undeclared (first use in this function) Task: The win32 Wine build failed === debian11b (build log) === ../wine/programs/wineboot/wineboot.c:1520:31: error: ���hwnd��� undeclared (first use in this function) Task: The wow64 Wine build failed
participants (3)
-
Isaac Marovitz -
Isaac Marovitz (@IsaacMarovitz) -
Marvin