On 10/08/2018 10:22 PM, DJ Lucas via blfs-dev wrote:


On 10/08/2018 02:30 PM, Bruce Dubbs via blfs-dev wrote:

My solution right now is to have:

$cat /usr/bin/lightdm-session
#!/bin/sh
. /etc/profile          # <--- Added
. $HOME/.bash_profile   # <--- Added


This was the purpose of adding ~/.profile in addition to ~/.bash_profile in the bash shell startup files. We hit the same thing with GDM. Can you change it to a login shell (#!/bin/sh -l) and give it a shot without explicitly sourcing the individual files?

Good call DJ. I changed the first line to '#!/bin/bash --login' and it called both /etc/profile and $HOME/.bash_profile.

I suppose we could keep /bin/sh, but I prefer to not worry about the differences between bash and sh. For the relatively simple things in the startup that a symlink from .profile to .bash_profile would work but that might cause problems if using zsh or tcsh in other places for those who want to use those shells.

Whatever we decide for the book, I'll go ahead and explain it on the lightdm page.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to