From a72aace49f06ec225cf20e03b45192f3dd39cc8b Mon Sep 17 00:00:00 2001 From: Nuno Sa Date: Tue, 7 Jan 2025 17:01:19 +0000 Subject: [PATCH] remote-connect: increase freerdp timeout Increase the timeout when execing freerdp. Seems that 5 seconds is too short for detecting some failures. Signed-off-by: Nuno Sa --- remote-connect.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote-connect.sh b/remote-connect.sh index a6eca93..4a545d5 100755 --- a/remote-connect.sh +++ b/remote-connect.sh @@ -15,7 +15,7 @@ do_connect() { ${freerdp} /u:nsa /p:"${PASSWORD}" /v:${IP_ADDR} /sound /audio-mode:1 /cert:ignore /microphone /multimon /gfx +clipboard +decorations +fonts -wallpaper 2>${LOG_FILE} & # The logic here is to wait for 5 seconds for freerdp to exit. If that happens, it means we got an error # so that we dump the log. Hence if get 124 (timeout) we assume success! - timeout 5 tail --pid $! -f /dev/null + timeout 10 tail --pid $! -f /dev/null [[ $? == 124 ]] && exit 0 || { zenity --text-info --title "Error xfreerdp log" --width=1000 --height=700 --filename ${LOG_FILE} exit 1