Skip to Content
FedoraFedora Input Method

Fedora Input Method

Input Method(fcitx5)

install fcitx5 with Japanese and Chinese input method

sudo dnf install fcitx5 fcitx5-autostart fcitx5-gtk fcitx5-qt fcitx5-chinese-addons fcitx5-mozc

install kimpanel for input method

reboot

in fcitx configuration

add Pinyin and Mozc

in Global Options, set Trigger Input Method to Control+Shift+Space .

in addons, set Pinyin with Shuangpin Profile Xiaohe

it seems my xiaohe is not working, trying to remove Pinyin and add it again, still not working

双拼没有生效 原来是添加输入法时,选择了 Pinyin 而不是 Shuangpin 。重新添加 Shuangpin 就好了。

Fix Input Method for Electron Apps (VS Code)

According to Arch wiki, Electron apps like VS Code need special configuration to work with fcitx5 input method.

Steps to fix VS Code input method:

  1. Copy the desktop file to user directory:

    cp /usr/share/applications/code.desktop ~/.local/share/applications/
  2. Edit the copied desktop file:

    nano ~/.local/share/applications/code.desktop
  3. Replace the Exec line with Wayland flags:

    Exec=/usr/share/code/code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 %F # also for the new window Exec=/usr/share/code/code --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-version=3 --new-window %F
  4. Save and restart

This enables native Wayland mode and proper input method support for Japanese/Chinese typing.

Attention: this fix only applies when you open VS Code from the application menu or desktop icon, not from terminal like code some-file.

Reference: https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland

Last updated on
Do not shoot this.