Re: [custom] Some issues for custom debian distributions
> Nikita V. Youshchenko <email@example.com> 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
> if [ -r $HOME/.profile ] ; then
> . $HOME/.profile
> This'll work for all display-managers that use the (Debian-)standard
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.