Re: kdm sourcing .bash_profile?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
> I know I've seen this discussed before but I couldn't find it in the
> archives. I have these lines in my .bash_profile:
>
> if [ -d ~/bin ] ; then
> PATH=~/bin:"${PATH}"
> fi
>
> When I login on the console it behaves as expected. However, when I
> login using kdm I don't get ~/bin in my path. What was the prevailing
> opinion on how to solve this?
When you login with kdm the bash_profile is not read, because kdm is not a
'login shell', like, for example, bash. To make kdm a 'login shell' (and
then, it reads the bash_profile), look up your 'Xsession' file and change the
first line by this:
#!/bin/sh --login
and below and this line
source $HOME/.bash_profile
For more information (because the definition of 'shell login' y said could be
wrong), 'man bash'...
Regards,
Ignacio.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9RxmMkC21d1l2YQURAkEOAJ4suLsZAY4vJueccTGeKEGE5WNbZACbBUWs
qYKE6HwT5npd1nuNUBlk+mI=
=Tasr
-----END PGP SIGNATURE-----
Reply to: