我的系统是Fedora 11,安装时选的是英文.我先是执行rpm -e `rpm -qa | grep "^ibus"`
卸载了系统自带的输入法,然后安装小企鹅输入法3.4.2版的,安装成功后又修改配置文件.bashrc,又修改配置文件,在最下面加了三行:
export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS="@im=fcitx"
先gedit /etc/X11/xinit/xinput.d/none.conf,
然后复制了帖子最下面的代码到并保存,用这种方法在Fedora 10安装成功过,但在Fedora 11却不行了,还请高人相助啊!!后面我把语言调成中文,重启都没用啊
可以调出小企鹅输入法,但是图标始终是灰色的
XIM=FCITX
XIM_PROGRAM=/usr/bin/fcitx
XIM_ARGS=
XMODIFIERS=@im=fcitx
DISABLE_IMSETTINGS=yes
gtkimm_exists () {
# check if any immodules installed
for dir in /usr/lib*/gtk-2.0/immodules; do
[ -x ${dir}/im-$1.so ] && return 0
done
return 1
}
if gtkimm_exists scim-bridge; then
GTK_IM_MODULE=scim-bridge
elif gtkimm_exists scim; then
GTK_IM_MODULE=scim
else
GTK_IM_MODULE=xim
fi
qtimm_exists () {
# check if any immodule installed
for dir in /usr/lib*/qt4/plugins/inputmethods; do
[ -x ${dir}/$1.so ] && return 0
done
return 1
}
if qtimm_exists im-scim-bridge; then
QT_IM_MODULE=scim-bridge
elif qtimm_exists libqscim; then
QT_IM_MODULE=scim
else
QT_IM_MODULE=xim
fi |