[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
if [ -r $HOME/.profile ] ; then
        . $HOME/.profile

This'll work for all display-managers that use the (Debian-)standard

Introducing an ~/.environment which would be evaluated by pam_env would
really be nice.
         cu andreas

Reply to: