SDB:Enable input method in Wayland

Jump to: navigation, search

When you enter Wayland session of KDE/GNOME, you cannot use input method (Fcitx or iBus) out of box. Here are steps that you can follow to enable them.

Both Fcitx and iBus have basic support for Wayland through an X protocol bridge. Next generation of Fcitx will have direct support of Wayland protocol.

Wayland reads different environment configuration file /etc/environment . This is why your input method configuration for X doesn't work with Wayland.

sudo vi /etc/environment

The file is empty except for some comments. Add the following lines (take Fcitx as example):

INPUT_METHOD=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx

If you prefer iBus, add these lines instead:

INPUT_METHOD=ibus
GTK_IM_MODULE=ibus
QT_IM_MODULE=ibus
XMODIFIERS=@im=ibus

After that reboot your system.