Tuesday, October 11, 2016
Gentoo install fcitx
Gentoo install fcitx
??emerge??Fcitx(Free Chinese Input Toy for X)????????fcitx???/etc/portage/package.keywords???????????4.0?????
app-i18n/fcitx ~x86
app-i18n/fcitx-configtool ~x86
app-i18n/fcitx-sunpinyin ~x86
app-i18n/sunpinyin ~x86
fcitx-configtool ???GTK?fcitx?????
sunpinyin???????????????????????fcitx-sunpinyin???????????????????????
sunpinyin???????????????????????fcitx-sunpinyin???????????????????????
??fcitx?fcitx-sunpinyin?fcitx-configtool?
emerge -avt fcitx fcitx-configtool fcitx-sunpinyin
????????????fcitx??????????????????????3????
1. ?Bash?????????Xfce4?
???????.xinitrc??????Xfce4??????????????????
???????.xinitrc??????Xfce4??????????????????
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
fcitx &
exec startxfce4
2. ???Slim???????
????Slim?????/etc/slim.conf????Xfce4???~/.xinitrc???
????Slim?????/etc/slim.conf????Xfce4???~/.xinitrc???
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
# login_cmd exec /bin/bash -login ~/.xinitrc %session
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
?????/usr/share/slim/Xsession???????~/.xinitrc????fcitx????????/usr/share/slim/Xsession??????fcitx??????/usr/share/slim/Xsession???X?????????xprofile???
# Read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
??????????.xprofile???fcitx?????????
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
?????.xprofile???????fctix &???????????fcitx??????????????fcitx.desktop??????autostart???
ln -s /usr/share/applications/fcitx.desktop ~/.config/autostartAvailable link for download