ubuntu14.04+xfce下启用fcitx,使用中文输入法


1. 安装fcitx

   sudo apt-get install fcitx-pinyin

 

2.启用fcitx

  打开 setting -> Language Support -> Language:

  在 Keyboard input method system 中选择 fcitx

 

3. 编辑家目录下的.xprofile文件,如没有则创建

  添加以下内容:

1 export XMODIFIERS=@im=fcitx
2 export GTK_IM_MODULE=fcitx
3 export QT_IM_MODULE=fcitx

 

4. 编辑家目录下的.xinitrc文件,如没有则创建

   添加以下内容:

 1 #!/bin/sh
 2 #
 3 # ~/.xinitrc
 4 #
 5 # Executed by startx (run your window manager from here)
 6 
 7 if [ -d /etc/X11/xinit/xinitrc.d ]; then
 8   for f in /etc/X11/xinit/xinitrc.d/*; do
 9     [ -x "$f" ] && . "$f"
10   done
11   unset f
12 fi
13 
14 eval `dbus-launch --sh-syntax --exit-with-session`
15 export GTK_IM_MODULE=fcitx
16 export QT_IM_MODULE=fcitx
17 export XMODIFIERS="@im=fcitx"
18 
19 exec startxfce4

 

5. 重启。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM