Ubuntu – Keyboard doesn’t work with Tor Browser

torvidalia

I use the actual Tor Browser 2.3.25-14 and Ubuntu 13.10 (Saucy Salamander). I start Tor in the command-line window (./start-tor-browser).

The cable less keyboard and mouse (Logitech) are working, the Vidalia control panel opens, after having connected to the Tor network, the Tor Browser window (Firefox) opens automatically. The onion is green, everything ok. But the keyboard doesn't work in the Tor Browser window, the mouse, yes, does work.

When I close Tor with the Vidalia control panel and open another application, the keyboard works again. Is there somebody who can help me or at least understands the problem? Thanks a lot!

Best Answer

You don't need to remove ibus, as this answer says, since you may need it! The correct solution is very simple and consists in:

  1. Open start-tor-browser script file from inside the Tor package with your favorite editor. I use gedit for shell scripts, so, in terminal, you can use the following command:

    gedit /path/to/start-tor-browser
    
  2. Add the following line on the second line (immediately after the line containing shebang interpreter directive - #!/bin/sh):

    export GTK_IM_MODULE="xim"
    

    The above line change the default value (ibus - Intelligent Input Bus, an input method framework for multilingual input) for GTK_IM_MODULE environment variable (which specifies an input method module to use) to xim (X Input Method).

  3. Of course, save the file and close it.

  4. Close Tor and reopen it.

That's all (until this bug will be fixed properly)!

Related Question