Comment #4 on issue 710 by [email protected]: ibus-setup shouldn't
recommend $HOME/.bashrc for environment variables
http://code.google.com/p/ibus/issues/detail?id=710
我觉得这里有两个问题:
1). 推荐 ~/.bashrc 是错误的
a). bashrc 是针对 interactive shell 的,而 各种 X session 的启动过程都
模拟一个 non-interactive login shell,所以 ~/.bashrc 会被忽略。结果就是只有
从命令行启动的程序有正确的环境变量,通过 Alt-F2或者菜单启动的程序都没有需要
的环境变量
b). 不是所有人都用 bash 作为 login shell,这个推荐有点 bashism
2). 应该推荐什么?
a) gdm 和 kdm 都支持 ~/.xprofile,但是某些发行版里的kdm被改成不支
持,例如 debian 和 fedora
b) ~/.xsessionrc 是debian系独有的
c) 某些用户通过 startx 启动桌面
这样看来在各种环境下都能起作用的只有 ~/.profile 或者
~/.bash_profile,但是这样在console下也引入了X相关的环境变量,感觉很dirty.
误导性的推荐不如没有推荐。我的建议是:
a). 去掉对具体位置的推荐
b). 反过来,提醒用户 ~/.bashrc 是个常见错误
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en