From 020acd1c409973ac542ac9296527b82109ece096 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Fri, 2 Jul 2021 14:21:26 +0300 Subject: [PATCH] Increase shell sync timeout (#3241) Signed-off-by: Lauri Nevala --- src/main/utils/shell-env.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/utils/shell-env.ts b/src/main/utils/shell-env.ts index b544603075..18a9545af9 100644 --- a/src/main/utils/shell-env.ts +++ b/src/main/utils/shell-env.ts @@ -29,7 +29,7 @@ export interface EnvironmentVariables { let shellSyncFailed = false; /** - * Attempts to get the shell environment per the user's existing startup scripts. + * Attempts to get the shell environment per the user's existing startup scripts. * If the environment can't be retrieved after 5 seconds an error message is logged. * Subsequent calls after such a timeout simply log an error message without trying * to get the environment, unless forceRetry is true. @@ -52,7 +52,7 @@ export async function shellEnv(shell?: string, forceRetry = false) : Promise setTimeout(() => { reject(new Error("Resolving shell environment is taking very long. Please review your shell configuration.")); - }, 5_000)) + }, 30_000)) ]); } catch (error) { logger.error(`shellEnv: ${error}`); @@ -61,6 +61,6 @@ export async function shellEnv(shell?: string, forceRetry = false) : Promise