mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
steam_helper: Set desktop close timeout for EA Desktop.
CW-Bug-Id: #21645
This commit is contained in:
parent
e171c46460
commit
5610e4538f
@ -1171,6 +1171,14 @@ run:
|
||||
SetConsoleCtrlHandler( console_ctrl_handler, TRUE );
|
||||
|
||||
use_shell_execute = should_use_shell_execute(cmdline);
|
||||
if (use_shell_execute && lstrlenW(cmdline) > 10 && !memcmp(cmdline, L"link2ea://", 10 *sizeof(WCHAR)))
|
||||
{
|
||||
HDESK desktop = GetThreadDesktop(GetCurrentThreadId());
|
||||
DWORD timeout = 300;
|
||||
|
||||
if (!SetUserObjectInformationA(desktop, 1000, &timeout, sizeof(timeout)))
|
||||
WINE_ERR("Failed to set desktop timeout, err %u.\n", GetLastError());
|
||||
}
|
||||
hide_window = env_nonzero("PROTON_HIDE_PROCESS_WINDOW");
|
||||
|
||||
/* only await the process finishing if we launch a process directly...
|
||||
|
Loading…
Reference in New Issue
Block a user