Solve the problem that Linux cannot input using fcitx5 input method

Solve the problem of being unable to input Linuxusing fcitx5the input method

① Download and install the corresponding software

Use Linuxthe software management tool to download fcitx5the corresponding dependent software of the input method:

Install on Debianyour system and its derivatives:

$ sudo apt-get install  fcitx5-frontend-qt5 fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-pinyin fcitx5-chinese-addons fcitx5-chewing fcitx5-module-lua fcitx5-module-lua-common fcitx5-modules unicode-cldr-core 

Install on Arch Linuxyour system and its derivatives:

$ sudo pacman -S fcitx5-im fcitx5-qt fcitx5-gtk fcitx5-chinese-addons fcitx5-lua unicode-cldr

……

Dependency explanation:

fcitx5-frontend-qt5/ fcitx5-qt- Provides modules for fcitx5input methods Qt5 IM.

fcitx5-frontend-gtk2/ fcitx5-gkt- Provides modules for fcitx5input methods GTK2 IM.

fcitx5-frontend-gtk3/ fcitx5-gtk- Provides modules for fcitx5input methods GTK3 IM.

fcitx5-pinyin- fcitx5Provide pinyin support for input method framework.

fcitx5-chinese-addons- fcitx5Provide Chinese related plug-ins for input methods.

fcitx5-chewing- Provides Traditional Chinese input engine for fcitx5input method .chewing

fcitx5-module-lua/ fcitx5-lua- Provides support for fcitx5input methods lua.

fcitx5-module-lua-common/ fcitx5-lua- Generic files providing support for fcitx5input methods .lua

fcitx5-modules-The fcitx5core module of the input method framework.

unicode-cldr-core/ unicode-cldr- Unicode CLDRCore common data from.

② Configure corresponding files

Configuration /etc/environmentfile or ~/.pam_environmentfile.

  • If the configuration /etc/environmentfile is configured, enter the following content in the file:

    XIM=fcitx5
    XIM_PROGRAM=fcitx5
    GTK_IM_MODULE=fcitx5
    QT_IM_MODULE=fcitx5
    XMODIFIERS=@im=fcitx5
    SDL_IM_MODULE=fcitx5
    GLFW_IM_MODULE=fcitx5
    
  • If the configuration ~/.pam_environmentfile is configured, enter the following content in the file:

    export XIM=fcitx5
    export XIM_PROGRAM=fcitx5
    export GTK_IM_MODULE=fcitx5
    export QT_IM_MODULE=fcitx5
    export XMODIFIERS=@im=fcitx5
    export SDL_IM_MODULE=fcitx5
    export GLFW_IM_MODULE=fcitx5
    

warn:

Read  ~/.pam_environment has been deprecated and no longer works.

③ Make the configuration file effective:

Use the following command to make the file just configured take effect:

If the configured /etc/environmentfile is configured, rootuse the following command under the user:

# source /etc/environment

If configured ~/.pam_environmentfile, use the following command:

$ source ~/.pam_environment

④ The configuration is complete, enjoy it~

You can enjoy the input method after restarting your computer fcitx5.

hint:

fcitx5-material-color- fcitx5Provides a theme similar to the Microsoft Input Method theme for the input method material color.

Guess you like

Origin blog.csdn.net/GaaraZ/article/details/128618441