LinuxSir.cn,穿越时空的Linuxsir!

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

fcitx如何自动加载?

[复制链接]
发表于 2006-6-8 01:07:32 | 显示全部楼层 |阅读模式
我装了fcitx输入法后,每次都要运行fcitx & 命令,我在论坛上看到有关fcitx输入法的安装方法,其中提到一点是可以自动加载fcitx,方法是在用户的目录下找到.xinitrc文件,加一行“fcitx &"但是我在/root目录下么没找到.xinitrc文件阿(我是用root登录的),现在我每次都要输入命令,很是烦人。.xinitrc文件倒底在???????????
知道的的朋友帮个忙阿!小弟也不知导是不是在.xinitrc文件文件里面改,在论坛上好像见过。
发表于 2006-6-8 07:52:31 | 显示全部楼层
You can add it to .xsession:

fcitx &

Note: this line must be put before the x window line e.p. exec fvwm
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-8 08:22:17 | 显示全部楼层
二楼的朋友能告诉我.xsession:
放在那个目录下吗。我找不到。谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-6-8 12:21:26 | 显示全部楼层
编辑/etc/X11/Xsession.d/25xinput文件或者55gnome-session_gnomerc文件,如果没有就建一个。加入:

export LC_CTYPE=zh_CN.UTF-8 #注释1
export XMODIFIERS=@im=fcitx
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx

注释1处也可用zh_CN.GBK。如果你在命令行下执行locale发现有LC_CTYPE=“zh_CN.UTF-8”或者LC_CTYPE=“zh_CN.GBK”,就把注释1处的那一行去掉。
回复 支持 反对

使用道具 举报

发表于 2006-6-8 13:00:51 | 显示全部楼层
vim ~/.bash_profile
  1. # .bash_profile
  2. #load fcitx
  3. fcitx&     <=====加一句fcitx& 就行了
  4. # Get the aliases and functions
  5. if [ -f ~/.bashrc ]; then
  6.         . ~/.bashrc
  7. fi
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-6-8 17:30:35 | 显示全部楼层
Post by freem
二楼的朋友能告诉我.xsession:
放在那个目录下吗。我找不到。谢谢!

You can create it by yourself at ~/.xsession. But I advise you search for more information about the contend of .xsession firstly.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-9 00:02:07 | 显示全部楼层
Post by KDF2003
vim ~/.bash_profile

  1. # .bash_profile
  2. #load fcitx
  3. fcitx&     <=====加一句fcitx& 就行了

  4. # Get the aliases and functions
  5. if [ -f ~/.bashrc ]; then
  6.         . ~/.bashrc
  7. fi
复制代码

我按照上面的方法修改了bash_profile文件
在重动时也见了小企的图标,但是进入到桌面后图标就不没了,我还得在终输入命令。
这是啥回事啊?难道就不能像windows一样吗?
还是我哪里设置错了。
回复 支持 反对

使用道具 举报

发表于 2006-6-9 00:32:39 | 显示全部楼层
运行 ps,看看是不是的确运行了fcitx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-9 10:29:25 | 显示全部楼层
不行啊
运行了ps不见有fcitx的进程阿
回复 支持 反对

使用道具 举报

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

本版积分规则

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