[client] app: add option to disable the waiting for host message

This commit is contained in:
Marco Rodolfi 2024-11-04 15:15:03 +01:00
parent e25492a3a3
commit 79264a424c
4 changed files with 51 additions and 38 deletions

View File

@ -71,3 +71,4 @@ Kamplom <6284968128@protonmail.ch> (kamplom)
Jacob McNamee <jacob@jacobmcnamee.com> (jacobmcnamee)
Marco Antonio J. Costa <marco.antonio.costa@gmail.com> (majcosta)
rs189 <35667100+rs189@users.noreply.github.com> (rs189)
Marco Rodolfi <marco.rodolfi@tuta.io> (RodoMa92)

View File

@ -309,6 +309,13 @@ static struct Option options[] =
.type = OPTION_TYPE_BOOL,
.value.x_bool = true
},
{
.module = "win",
.name = "disableWaitingMessage",
.description = "Disable the waiting for host message during startup",
.type = OPTION_TYPE_BOOL,
.value.x_bool = false
},
// input options
{
@ -678,6 +685,7 @@ bool config_load(int argc, char * argv[])
g_params.uiSize = option_get_int ("win", "uiSize" );
g_params.jitRender = option_get_bool ("win", "jitRender" );
g_params.requestActivation = option_get_bool ("win", "requestActivation" );
g_params.disableWaitingMessage = option_get_bool ("win", "disableWaitingMessage");
if (g_params.noScreensaver && g_params.autoScreensaver)
{

View File

@ -1497,6 +1497,8 @@ restart:
if (waitCount == 30)
{
DEBUG_BREAK();
if (!g_params.disableWaitingMessage)
{
msgs[msgsCount++] = app_msgBox(
"Host Application Not Running",
"It seems the host application is not running or your\n"
@ -1509,6 +1511,7 @@ restart:
"Continuing to wait...");
msgs[msgsCount++] = showSpiceInputHelp();
}
DEBUG_INFO("Check the host log in your guest at %%ProgramData%%\\Looking Glass (host)\\looking-glass-host.txt");
DEBUG_INFO("Continuing to wait...");

View File

@ -202,6 +202,7 @@ struct AppParams
int uiSize;
bool jitRender;
bool requestActivation;
bool disableWaitingMessage;
unsigned int cursorPollInterval;
unsigned int framePollInterval;