summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/g-i-installation.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index 56aa6464..d0fd56e4 100755
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -275,7 +275,16 @@ backup_screenshot() {
do_and_report() {
echo "At $NR (token: $TOKEN) sending $@"
- vncdo -s $DISPLAY $@
+ # Workaround vncdo type command sending "e" chars sometimes not
+ # received, sometimes received as if "e" key was kept pressed.
+ if [ "$1" = "type" ]; then
+ typestr=$2
+ for i in $(seq 0 $(( ${#typestr} - 1 ))); do
+ vncdo -s $DISPLAY --delay=100 key ${typestr:$i:1}
+ done
+ else
+ vncdo -s $DISPLAY $@
+ fi
backup_screenshot
}