Using xdotool type
or xdotool key
with certain characters makes Gnome Shell lock up. For example typing a single slash with xdotool type /
or xdotool key slash
takes a second or two, but for something like 23 slashes (i.e. xdotool type ///////////////////////
) it's more than 25 seconds.
Of all the printable ASCII characters, only these cause the problem:
- slash
/
- backslash
\
- bar
|
- bracketleft
[
- bracketright
]
- braceleft
{
- braceright
}
Outside ASCII, I've only tested çé°†
, but they also cause the problem.
Why does this happen and how can I fix it?
More details
I never had this problem in Unity on 14.04.
There is a small delay when typing other characters, but only up to a second, even for long strings.
Any timing I've done in the terminal has come back normal, like time xdotool type ...
or t=$SECONDS; xdotool ...; echo $((SECONDS-t))
, so it seems to be a problem on Gnome Shell's side.
I've confirmed $XDG_SESSION_TYPE
is x11
.
setxkbmap us
fix the problem?: https://github.com/jordansissel/xdotool/issues/49 Related to using this "bug fix" is .5 second delay: https://unix.stackexchange.com/questions/139959/type-some-text-with-xdotool-independently-of-the-keyboard-layout – WinEunuuchs2Unix Sep 22 '19 at 18:29é°
– wjandrea Sep 22 '19 at 19:48