how to input chinese?
now my system is ml1.2pre6 ,but i can not input chinese after rebuilding the kernel,what should i do??or where can i find solutions? 在控制台运行fcitx试试我的输入法也不能自动起动!
是不是pr6的bug,要如何小企鹅输入法随kde起动呢? yup, it is bug. But if you use init 3 + startx, it should be ok. 对于Fcitx不能自动运行,您可以用命令来调用,如下:
#fcitx
也可以把fcitx命令写入当前用户目录下的.bashrc文件中,或者.profile中,根据您所用的系统来判断,这个命令在文件中要独占一行!
或者在/etc/X11/xinit/xinitrc.d/xinput里加上:
LANGUAGE=zh_CN.GBK
LANG=zh_CN.GBK
LC_ALL=zh_CN.GBK
export XMODIFIERS=@im=fcitx
fcitx& yup, it is bug. But if you use init 3 + startx, it should be ok.
我就是这样做D :mrgreen: yup, it is bug. But if you use init 3 + startx, it should be ok.
麻烦您做个补丁传上来好吗,这样虽然可以但是很不方便!
不知直接考pr5的/usr/share/config/kdm/Xsession文件过来行吗?
哪位还有pr5的提供一个好吗!
Xsession
bash-2.05b# cat Xsession#!/bin/bash
# Copyright (c) 1999-2002 Red Hat, Inc.
# redirect errors to a file in user's home directory if we can
if [ -z "$GDMSESSION" ]; then
# GDM redirect output itself in a smarter fashion
errfile="$HOME/.xsession-errors"
if cp /dev/null "$errfile" 2> /dev/null ; then
chmod 600 "$errfile"
exec > "$errfile" 2>&1
else
errfile=`mktemp -q /tmp/xses-$USER.XXXXXX`
if [ $? -eq 0 ]; then
exec > "$errfile" 2>&1
fi
fi
fi
if ! printenv PATH | grep -q /usr/X11R6/bin
then
PATH="${PATH}":/usr/X11R6/bin
fi
xsetroot -solid '#20305A'
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap
sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap
# merge in defaults
if [ -f "$sysresources" ]; then
xrdb -merge "$sysresources"
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
# merge in keymaps
if [ -f "$sysxkbmap" ]; then
setxkbmap $(cat "$sysxkbmap")
XKB_IN_USE=yes
fi
if [ -f "$userxkbmap" ]; then
setxkbmap $(cat "$userxkbmap")
XKB_IN_USE=yes
fi
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
xkbsymbols=`sed -n -e 's/^[ ]*XkbSymbols[ ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
if [ -n "$xkbsymbols" ]; then
setxkbmap -symbols "$xkbsymbols"
XKB_IN_USE=yes
fi
fi
fi
# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
if [ -f "$sysmodmap" ]; then
xmodmap "$sysmodmap"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
fi
unset XKB_IN_USE
# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
if [ -x "$i" ]; then
. "$i"
fi
done
# is ssh-agent available?
SSHAGENT=
[ -x /usr/bin/ssh-agent ] && SSHAGENT="/usr/bin/ssh-agent"
# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
if [ -x "/usr/share/apps/switchdesk/Xclients.$1" ]; then
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.$1";
fi;
case "$1" in
failsafe)
exec -l $SHELL -c "xterm -geometry 80x24-0-0"
;;
gnome)
exec -l $SHELL -c "$SSHAGENT gnome-session"
;;
kde|kde1|kde2)
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.kde"
;;
twm)
# fall back to twm
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.twm"
;;
*)
# GDM provies either a command line as the first argument or
# provides 'failsafe', 'default' or 'custom'.KDM will do the
# same at some point
if [ -n "$GDMSESSION" -a "$1" != "default" -a "$1" != "custom" ]; then
exec -l $SHELL -c "$SSHAGENT $1"
fi
;;
esac
esac
# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
exec -l $SHELL -c "$SSHAGENT $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
exec -l $SHELL -c "$SSHAGENT $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
exec -l $SHELL -c "$SSHAGENT /etc/X11/xinit/Xclients"
else
# should never get here; failsafe fallback
exec -l $SHELL -c "xsm"
fi
或者在/etc/X11/xinit/xinitrc.d/xinput里加上:
LANGUAGE=zh_CN.GBK
LANG=zh_CN.GBK
LC_ALL=zh_CN.GBK
export XMODIFIERS=@im=fcitx
fcitx&
This is good.
页:
[1]