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