LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1037|回复: 5

fcitx的笨问题。。。

[复制链接]
发表于 2006-1-12 17:21:53 | 显示全部楼层 |阅读模式
我的fcitx已经可以用了,但是我不知道怎么把它加到起动里面。

这个“用户目录下找文件:.xinitrc或.xsession”我怎么找不到???

高手提示一下。多谢,这段文字就是用fcitx写的,输入法不错,可惜还差一步。


×××××××××××××××××××××××××××××××××××××××
当然可以,在你的用户目录下找文件:.xinitrc或.xsession,把里面加上一句:
fcitx &
好了,现在你一进入XWindow,就能使用输入法了。注意的是,这一句话要加在窗口管理器的前面,比如你用的是kde,那就应该是:
fcitx &
exec startkde
你用的是gnome,就应该是:
fcitx &
exec gnome-session
其他的也一样。
××××××××××××××××××××××××××××××××××××××××
 楼主| 发表于 2006-1-13 10:08:55 | 显示全部楼层
。。。。。。?
没有热心人吗?还是问题太SB了???不原意回答??

我用的是RH9,在~目录下面找不到.xinitrc或.xsession文件啊,一定是在别的什么地方,能提示一下吗?
。。。。。。?
晕死啊
回复 支持 反对

使用道具 举报

发表于 2006-1-13 10:20:06 | 显示全部楼层
copy from /etc/X11/xinit or write your own.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-13 10:26:22 | 显示全部楼层
3x~~~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-13 10:44:24 | 显示全部楼层
现在还不行。。。

我的xinitrc文件:
我用root登陆,文件拷贝在/root下,
.xinitrc :
***********************************************************
#!/bin/sh
# (c) 1999-2002 Red Hat, Inc.

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

# The user may have their own clients they want to run.  If they don't,
# fall back to system defaults.
# set up ssh agent environment if available.

if [ -f $HOME/.Xclients ]; then
    [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
        exec ssh-agent $HOME/.Xclients || \
        exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
    [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && \
        exec ssh-agent /etc/X11/xinit/Xclients || \
        exec /etc/X11/xinit/Xclients
else
       # failsafe settings.  Although we should never get here
       # (we provide fallbacks in Xclients as well) it can't hurt.
       xclock -geometry 100x100-5+5 &
       xterm -geometry 80x50-50+150 &
       if [ -x /usr/bin/netscape -a -f /usr/share/doc/HTML/index.html ]; then
               netscape /usr/share/doc/HTML/index.html &
       fi
       if [ -x /usr/X11R6/bin/fvwm2 ]; then
               exec fvwm2
       else
               exec twm
       fi
fi
************************************************
fcitx &应该加在哪儿?
是在最后的exec twm前吗?
这个文件在什么是否被执行,是不是还要改什么设置?在起动的是否运行这个文件?

用论坛的搜索功能也找不到更多的帮助。。。???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-13 11:30:30 | 显示全部楼层
找到一个最easy的办法。
在会话中,添加起动程序fcitx。

以前装声卡驱动的是否也是看别人这样搞过。
没有想到还用上了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表