[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [custom] Some issues for custom debian distributions




> Nikita V. Youshchenko <yoush@cs.msu.su> wrote:
> [...]
>> Another thing is replacing "#!/bin/sh" by "#!/bin/bash --login" in
>> /etc/kde3/kdm/Xsession (and other dm's Xsession files). This is the only
>> way I know to make login shell startup files evaluated during X logins.
>> This issue is known for ages, but it seems that people who make decisions
>> don't thing it is necessary. So this isn't likely to be fixed with
>> debconf questions.
> [...]
> 
> cat <<EOF > /etc/X11/Xsession.d/60local_userenvironment
> if [ -r /etc/profile ] ;then
>         . /etc/profile
> fi
> if [ -r $HOME/.profile ] ; then
>         . $HOME/.profile
> fi
> EOF
> 
> This'll work for all display-managers that use the (Debian-)standard
> /etc/X11/Xsession.d/.

Sterictly saying, this is broken.
/etc/profile, ~/.profile and other login shell rc files should be read by
logic shells only, so if a user types "startx" on the console, they should
not be read.



Reply to: