View Single Post
Old 25. Jun 2009, 05:50 PM   #2 (permalink)
debtboy
Senior Member
 
debtboy's Avatar
 
Join Date: May 2009
Location: ~/
Posts: 129
Default

Quote:
Originally Posted by bk_7312 View Post
Could someone help explain what this means and what it does:

5. In /etc/X11/Xsession.d directory, create a new file named 95xim with following content:

Quote:
export LANG="zh_CN.GB2312"
export LC_CTYPE="zh_CN.GB2312"
export LC_ALL="zh_CN.GB2312"

# fcitx will start in background by default
/usr/bin/fcitx
XMODIFIERS="@im=fcitx"

export XMODIFIERS
The whole HowTo guide is found here: http://www.linuxsir.org/bbs/showthread.php?p=1547199

See here for why I asked that question: learn Chinese
Hi bk,
I'm no expert on Xserver but, I'll tell you what I think it's doing.

First of all, the Xserver is the base interface/platform that graphical
environments like KDE and Gnome run on and Xsession.d is like
a start-up directory where things are automatically started when
the Xserver is initiated (run level 5, booting into a graphical environment).

Exporting variables makes those variables available to any child processes
initiated from the source process. For example, I start a bash shell and
export a varible, then initiate another bash shell from the original and that
"child" shell can read the variable that the parent exported.

In the script 3 language or language classification/category variables
are set to (I assume chinese?) then a particular
X input manager daemon (fcitx) is kicked off or started.
After that XMODIFIERS environment variable is set and exported
telling X clients running on the X server to receive their input via
fcitx input manager (@im=fcitx).

Sorry, I know nothing about fcitx as I've never used it.
__________________
[I][B]Linux, the choice of a GNU generation[/B][/I]
debtboy is offline   Reply With Quote