summaryrefslogtreecommitdiffstats
path: root/x11vnc/misc/enhanced_tightvnc_viewer/bin
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/misc/enhanced_tightvnc_viewer/bin')
-rwxr-xr-xx11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer13
-rwxr-xr-xx11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl9
2 files changed, 21 insertions, 1 deletions
diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer
index f7b4831..1b17b29 100755
--- a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer
+++ b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ss_vncviewer
@@ -553,6 +553,10 @@ if [ "X$use_ssh" = "X1" ]; then
$ssh -x -f -p $ssh_port $targ $C $ssh_redir $ssh_args $ssh_host "$ssh_cmd" > $tport
rc=$?
+ if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
+ sleep $SSVNC_EXTRA_SLEEP
+ fi
+
stty sane
i=0
while [ $i -lt 10 ]; do
@@ -618,6 +622,9 @@ if [ "X$use_ssh" = "X1" ]; then
sleep 5
fi
echo ""
+ if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
+ sleep $SSVNC_EXTRA_SLEEP
+ fi
#reset
stty sane
#echo "pssh=\"$pssh\""
@@ -944,6 +951,9 @@ if [ "X$direct_connect" != "X" ]; then
host="localhost"
disp="$N"
fi
+ if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
+ sleep $SSVNC_EXTRA_SLEEP
+ fi
if [ "X$reverse" = "X" ]; then
echo "$VNCVIEWERCMD" "$@" $host:$disp
trap "final" 0 2 15
@@ -1092,6 +1102,9 @@ sleep 2
rm -f "$tmp"
echo ""
+if [ "X$SSVNC_EXTRA_SLEEP" != "X" ]; then
+ sleep $SSVNC_EXTRA_SLEEP
+fi
echo "Running viewer:"
if [ "X$reverse" = "X" ]; then
echo "$VNCVIEWERCMD" "$@" localhost:$N
diff --git a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
index 2e0e76d..cdfb648 100755
--- a/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
+++ b/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/ssvnc.tcl
@@ -1040,7 +1040,7 @@ proc do_viewer_windows {n} {
global use_alpha use_grab use_ssh use_sshssl use_viewonly use_fullscreen use_bgr233
global use_nojpeg use_raise_on_beep use_compresslevel use_quality
global change_vncviewer change_vncviewer_path vncviewer_realvnc4
- global use_listen
+ global use_listen env
set cmd "vncviewer"
if {$change_vncviewer && $change_vncviewer_path != ""} {
@@ -1170,6 +1170,13 @@ proc do_viewer_windows {n} {
append cmd " $n"
}
}
+
+ if [info exists env(SSVNC_EXTRA_SLEEP)] {
+ set t $env(SSVNC_EXTRA_SLEEP)
+ mesg "sleeping an extra $t seconds..."
+ set t [expr "$t * 1000"]
+ after $t
+ }
mesg $cmd
set emess ""