[quote:08df61e903="llc"]看来用Debian/LFS/Gentoo的都是老鸟了[/quote]
什么时候也来跑跑 Debian/LFS/Gentoo 如何?!
--------------------
算了,仔细想一下还是批驳一下 mars 的话:
1。在 /etc/env.d 中加入那几个 XIMxxxx 的变量后,需要运行 env-update 命令更新 /etc/profile.env,要不然的确等于没加,在 /etc/profile 的头几行可以看见 "source /etc/profile.env" 这一行。。。
2。‘source /etc/profile’ 这一行我是加在 ~/.bashrc 行首,加在行尾还不如不加 - 在 .bashrc 中的修改全都不算,因为都被 profile 的设置给覆盖了
3。将 XIMxxx 那几个变量加在 /etc/env.d 中,因为这是 Gentoo 的规范,/etc/env.d 作用就是存储系统变量以便于更好管理,当然,Linux 是你的,不高兴大可以不加
btw: 除非是多用户有不同的设置,要不然完全不必在 profile, ~/.bashrc, ~/.xinitrc 中同时定义多个同样的变量