#931 Auto-type fails to send ? on linux



I noticed today that a randomly generated password using special characters is not auto-typed correctly:

8Bc9I?U1G ==> 8Bc9IU1G (the question mark is gone)

I'm running KeePass 2.16 on Ubuntu 11.04, xdotool version 2.20100818.3004


  • Julian Taylor

    Julian Taylor - 2011-08-03

    can't reproduce that on 11.04 with xdotool 1:2.20100701.2961-3ubuntu1 and 1:2.20110530.1-3
    In which application are you typing?
    xdotool type "8Bc9I?U1G"
    also drop the questionmark?
    which keyboard layout are you using, do you have more than one keyboard layout listed in keyboard preferences -> layout? are you using two channel autoobsfuscation?

    does it happen with keepass and xdotool from this ppa?

  • dregad

    dregad - 2011-08-03

    Hi Julian,

    Actually, I used your package to install keepass (btw, thanks for building and making it available !).

    I tried to auto-type this into firefox (it was a pw for a web site), but I get the same results auto-typing into a text editor (tried gedit and scite), which is how I noticed the problem (the web site would just complain about a wrong password).

    Using copy/paste from Keepass works fine.

    > does:
    > xdotool type "8Bc9I?U1G"
    > also drop the questionmark?

    $ xdotool type "8Bc9I?U1G"
    8bC9i^[u1g$ 8bC9i1g

    The output is quite strange - as you can see the , and the string is repeated as a command after the $ prompt.? gets converted to "^[" (looks like some sort of escape sequence), the letters' case is toggled. Without the ?, all is fine:

    $ xdotool type 8Bc9IU1G
    8Bc9IU1G$ 8Bc9IU1G

    Similar results with a simple test case (note that "something" is typed, because I need to press enter twice to get back to the prompt):

    $ xdotool type ?

    My keyboard layout is Switzerland French, and that's the only one I have setup.

    I was not using 2-channel obfuscation before, but I just tried it and I get the same results.

    Hope this helps.

  • Julian Taylor

    Julian Taylor - 2011-08-03

    this is probably a xdotool issue then.
    I still also can't reproduce it with your keyboard layout.
    xdotool key question
    print a questionmark?

  • dregad

    dregad - 2011-08-04

    Yes it does:
    $ xdotool key question
    $ ?

    > this is probably a xdotool issue then.
    Maybe it would be more appropriate if I opened an issue on the xdotool tracker ?

  • Dreisam

    Dreisam - 2013-11-19

    i can reproduce Damiens problem - but not with the character "?". I have problems with "@". I reduced the autotype-speed, so i could see what happens. The problem does not occur each time. Only sometimes.

    I am using ubuntu and applications in the very actual version.

  • Dominik Reichl

    Dominik Reichl - 2014-01-02
    • status: open --> closed
    • Group: --> KeePass_2.x

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks