Install Sogoupinyin Input Method on Ubuntu 22.04

less than 1 minute read

Published:

In Ubuntu 22.04 with GNOME 42, Wayland is enabled by default as the windowing system. Yet the current instructions are mostly based on Ubuntu lower than 20.04, which chooses X11 as windowing system. X11 configurations are somehow not that compatible on Wayland. This is also a reason why input method does not work on Ubuntu 22.04.

The Common Steps

First we have the common steps: reference Sogou Pinyin Guide and setup Sogoupinyin input method with Fcitx4 framework.

Export Environment Variables

For Wayland we have to export the environments variables elsewhere:

In /etc/environment, add these:

# file: "/etc/environment"
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS="@im=fcitx"

Then reboot to enable these options.