|
发表于 2005-8-15 12:31:02
|
显示全部楼层
不应该修改 ~/.xsession,Arch的 ~/.xsession文件是一个执行~/.xinitrc 的文件(root除外)。
启动输入法可以这样:
1 在/etc/X11/sessions下建立一个 Custom.desktop 文件,内容如下
- # The names/descriptions should really be better
- Name=Custom System Session
- Comment[zh_CN]=自定义会话
- Exec=custom
- # The "default" Exec is a very special one and is handled specially in
- # the Xsession script, you could also have "custom" which would just run
- # "~/.xsession" directly
- Icon=
- Type=Application
复制代码
把需要设置的内容写在~/.xinitrc 中,在KDM登录时选择custom 这个 Session就可以,如
- LANG=zh_CN.UTF-8
- export LANG
- export XMODIFIERS="@im=SCIM"
- export GTK_IM_MODULE=scim
- export QT_IM_MODULE=scim
- scim -d
- exec dbus-launch gnome-session
复制代码 |
|