|
|
发表于 2006-12-26 12:58:23
|
显示全部楼层
可以考虑把要启动的命令写在一个脚本中,放到/etc/X11/xinit/xinitrc.d 下,这样就可以避免使用.xinitrc文件了。- dehao@7dehao /etc/X11/xinit/xinitrc.d $ ls
- 20-fcitx 30-dbus
复制代码- dehao@7dehao /etc/X11/xinit/xinitrc.d $ cat 20-fcitx
- export LC_ALL=zh_CN.UTF-8
- export LANG=zh_CN.UTF-8
- export XMODIFILERS="@im=fcitx"
- export XIM=fcitx
- export XIM_PROGRAM=fcitx
- export GTK_IM_MODULE=XIM
- fcitx &
- exec /usr/X11R6/bin/numlockx &
复制代码 不用写exec gnome-session了,这个会自动调用的。
30-dbus是安装好就有的- dehao@7dehao /etc/X11/xinit/xinitrc.d $ cat 30-dbus
- #!/bin/bash
- # launches a session dbus instance
- dbuslaunch="`which dbus-launch 2>/dev/null`"
- if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
- eval `$dbuslaunch --sh-syntax --exit-with-session`
- fi
复制代码 |
|