18

After running in the terminal ibus exit, it successfully exited in the terminal. It was interfering with a program where it did not allow typing in that program. Or rather maybe the program was interfering with iBus.

Regardless, now that the use of the program is done, ibus restart was entered into the terminal to reactivate it, but now the only thing that comes out is Can't connect to iBus.

The same thing happens for other functional commands of ibus in the terminal.

Grateful for any feedback for how to turn ibus back on and off at will.

20

ibus restart will only reset the internal state of ibus, so it doesn't work if ibus daemon is not running. If you want to start ibus again from the command line or in a shell script,

ibus-daemon &

seems do the trick.

Note that if ibus is already running, this command will automatically terminate the older instance (similar to ibus exit) and the new process will take place, so you probably do not need ibus exit and ibus restart.

1
  • 1
    Use nohup ibus-daemon &. Otherwise it will exit after you close the terminal
    – DarkTrick
    Apr 1 at 6:32
0
  1. First solution:

You can add these lines to file /home/$USER/.bashrc. First, you open file /home/$USER/.bashrc with this command:

sudo gedit ~/.bashrc

and then you add these lines to the .bashrc file:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

Then, you logout and login again. This is my solution.

  1. Second solution: you can download the ibus engine that you want to use, example ibus-bamboo

Download ibus-bamboo:

cd Desktop
wget https://github.com/BambooEngine/ibus-bamboo/archive/master.zip -O ibus-bamboo.zip

or clone from github:

git clone https://github.com/BambooEngine/ibus-bamboo.git

Build & install

cd ibus-bamboo
sudo make install
sudo apt install ibus
sudo apt-get install ibus-gtk3

Then you restart ibus (After LOG OUT)

ibus restart
ibus-setup

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.