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. 重启。

转载于:https://www.cnblogs.com/yin3072114/p/5226485.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值