|
好吧,其实我是用kubuntu发现的,但是debian的情况也这样
上游默认的kdm/Xsession 这个文件明明是支持 ~/.xprofile的,
[ -f /etc/xprofile ] && . /etc/xprofile
[ -f $HOME/.xprofile ] && . $HOME/.xprofile
结果debian 的补丁把这两行代码删掉了
$ grep -n xprofile patches/*
patches/08_genkdmconf.diff:62:-"[ -f /etc/xprofile ] && . /etc/xprofile\n"
patches/08_genkdmconf.diff:63:-"[ -f $HOME/.xprofile ] && . $HOME/.xprofile\n"
我原以为这是为了遵循debian的某种习惯,但是 gdm 就支持 ~/.xprofile
$ grep -n xprofile /etc/gdm/Xsession
35:# Second read /etc/xprofile and .xprofile for X specific setup
36:test -f /etc/xprofile && . /etc/xprofile
37:test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
哪位熟悉debian的打包习惯,能解惑一下么? |
|