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. You need to add some environment variables to enable an input method engine (IME).

For fcitx 5:

INPUT_METHOD=fcitx5
GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5

For fcitx 4:

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

For ibus:

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

After that reboot your system.