How to set up pinyin input in Qubes
In the TemplateVM in which the AppVMs you would like to use pinyin input is based, please install
ibus-pinyinvia the package manager or terminal. If the template is Fedora-based, run
sudo dnf install ibus-pinyin, if the template is Debian-based, run
sudo apt install ibus-pinyin
Close and shut down the TemplateVM.
Restart an AppVM which is based on the template you installed
ibus-pinyinin, and open a terminal.
You will likely get the error message telling you to paste the following into your bashrc:
export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus
Copy the text into your
~/.bashrcfile with your favorite text editor. You will need to do this on any AppVM in which you wish to use pinyin input.
Set up ibus input as you like using the graphical menu (add pinyin or intelligent pinyin to selections). You can bring the menu back by issuing
ibus-setupfrom a terminal.
Set up your shortcut for switching between inputs, by default it is super-space.
If ibus-pinyin is not enabled when you restart one of these AppVMs, open a terminal and run
ibus-setup to activate ibus again.
For further discussion, see this qubes-users thread.