From ArchWiki
Revision as of 20:06, 23 January 2012 by Csslayer (talk | contribs)
Jump to: navigation, search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

FCITX (Free Chinese Input Toy of X) is a collection of Simplified Chinese input methods for Linux.


Template:Package Official can be installed with Pacman from the [extra] repository.

Using FCITX to input Chinese

Before you can make use of FCITX for input, you have to setup some environment variables. It is quite simple.

  • Open the Template:Filename or (.profile?) file in your home directory and add following lines:
 #setup XIM environment
 export GTK_IM_MODULE=xim
 export QT_IM_MODULE=xim
 export XMODIFIERS="@im=fcitx"

Since 4.1.0, Fcitx provides it's own input method module, Template:Package Official, Template:Package Official, and Template:Package Official. It's recommend to use input method module instead of xim directly, in order to resolve strange bugs brings XIM.

You can set corresponding environment variables

 export GTK_IM_MODULE=fcitx
 export QT_IM_MODULE=fcitx

In order to use Fcitx input methdo module, you also need DBus startup correctly.

  • Re-login to make such environment effective.

After you re-login, open your favorite terminal, type:

  fcitx &

To see if fcitx is working correctly, open an application such as leafpad and press CTRL+Space to invoke FCITX and input some words.

If everything goes well, you may want to start FCITX automatically whenever you start X.

Open the Template:Filename file (see xinitrc) in your home directory, add line before starting your WM:

 killall fcitx
 fcitx &

That is it.

If you use any type of XDM (gdm for example), you should set up such environment in Template:Filename instead of above two files.


Autostart with desktop

XDG compatible environment

You can copy /usr/share/applications/fcitx.desktop to ~/.config/autostart/, under KDE, GNOME, XFCE, , LXDE, or any other XDG compatible environment.


You can put fcitx inside your Template:Filename, and set corresponding environment variable mentioned above in ~/.xinitrc.

If you want use input method module, make sure dbus is started before you start everything, if you are not sure, add

 eval `dbus-launch --sh-syntax --exit-with-session`

to the head of Template:Filename.


CTRL+Space does not work

If you cannot invoke FCITX by pressing the CTRL+Space keyboard combination, but FCITX runs in background without problem, please check your locale, and make sure your locale is un-commented in /etc/locale.gen.

See also