linux japanese input - Forest0923/memo GitHub Wiki

System

  • Arch Linux
  • Gnome

Commands

  • Case 1: fcitx + mozc
sudo pacman -S fcitx-mozc fcitx-im fcitx-configtool
  • Case 2: fcitx5 + mozc
sudo pacman -S fcitx5-mozc fcitx5-im fcitx5-configtool
  • Create .pam_environment in user home directory:
+ GTK_IM_MODULE DEFAULT=fcitx
+ QT_IM_MODULE  DEFAULT=fcitx
+ XMODIFIERS    DEFAULT=\@im=fcitx
+ SDL_IM_MODULE DEFAULT=fcitx
  • If mozc does not work, try the following command:
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"
⚠️ **GitHub.com Fallback** ⚠️