Add a new environment variable `WINEHIDEWAIT` to disable configuration wait windows. Useful for wine wrappers that want to keep the UX seamless.
-- v2: Fix oopsie
From: Isaac Marovitz isaacryu@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();
From: Isaac Marovitz isaacryu@icloud.com
--- programs/wineboot/wineboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index b79e33f0e2e..1d831aa0ccc 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -1495,9 +1495,10 @@ static void update_wineprefix( BOOL force )
if ((process = start_rundll32( inf_path, L"PreInstall", IMAGE_FILE_MACHINE_TARGET_HOST ))) { + HWND hwnd; WCHAR *hide = _wgetenv( L"WINEHIDEWAIT" ); if (hide != "1") { - HWND hwnd = show_wait_window(); + hwnd = show_wait_window(); } for (;;) {