From 8ea5c2e07998f8d0b2cf34409d0907138fc5d66e Mon Sep 17 00:00:00 2001 From: eylenburg <84839316+eylenburg@users.noreply.github.com> Date: Mon, 23 Jun 2025 12:18:10 +0100 Subject: [PATCH] Update winapps --- bin/winapps | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/winapps b/bin/winapps index 860f456..d6667a4 100755 --- a/bin/winapps +++ b/bin/winapps @@ -50,7 +50,7 @@ RDP_SCALE=100 AUTOPAUSE="off" AUTOPAUSE_TIME="300" DEBUG="true" -BOOT_MAX_WAIT_TIME=120 +BOOT_TIMEOUT=120 # OTHER FREERDP_PID=-1 @@ -477,7 +477,7 @@ function waCheckContainerRunning() { dprint "WAITING FOR CONTAINER TO BE FULLY READY..." notify-send --expire-time=4000 --icon="dialog-info" --app-name="WinApps" --urgency="low" "WinApps" "Waiting for Windows to be ready..." - while (( WAIT_ELAPSED < BOOT_MAX_WAIT_TIME )); do + while (( WAIT_ELAPSED < BOOT_TIMEOUT )); do # Check if container is running if [[ $("$WAFLAVOR" inspect --format='{{.State.Status}}' "$CONTAINER_NAME") == "running" ]]; then # Try to connect to RDP port to verify it's ready @@ -502,7 +502,7 @@ function waCheckContainerRunning() { done # If we timed out waiting for the container - if (( WAIT_ELAPSED >= BOOT_MAX_WAIT_TIME )); then + if (( WAIT_ELAPSED >= BOOT_TIMEOUT )); then dprint "TIMEOUT WAITING FOR CONTAINER TO BE READY" notify-send --expire-time=4000 --icon="dialog-info" --app-name="WinApps" --urgency="low" "WinApps" "Timeout waiting for Windows to be ready. Please try again." waThrowExit $EC_FAIL_START