I considered this a bug, too, because by default, your terminals under a
graphical login would source .bash_profile in the previous version of
Mandrake. But I guess you could call it "different behavior" instead of a
bug.
On the KDE web site, there is this in the KDE Configuration FAQ:
http://www.kde.org/documentation/faq/configure.html#AEN1996
9.11. KDE (kdm) does not read my .bash_profile!
Well, xdm (and kdm) does not run a login shell, so .profile,
.bash_profile, etc. are not sourced. When the user logs in,
xdm runs Xstartup as root and then Xsession as user. So the
normal practice is to add statements in Xsession to source the
user profile. Please edit your Xsession and .xsession files.
So when I compared the start of the file /etc/X11/Xsession in Mandrake 8.0:
#!/bin/sh
with the start of the file /etc/X11/xdm/Xsession in Mandrake 7.2:
#!/bin/bash -login
I saw that the bash shell is no longer invoked as a login shell, which,
according to the bash man page, means that .bash_profile will not be
sourced.
So the solution I used was to modify the first line of /etc/X11/Xsession to
read:
#!/bin/bash -login
as it was in the past, and now .bash_profile does indeed get sourced in my
Mandrake 8.0.
--
Scott Langley
[EMAIL PROTECTED]
http://www.scottlangley.com
----- Original Message -----
From: "Guillaume Rousse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 2:30 PM
Subject: [Cooker] .bash_profile not sourced
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On a current cooker, .bash_profile is not sourced on graphical login (via
> kdm). It is on virtual terminal login.
> - --
> Guillaume Rousse
>
> Murphy's law : If anything can go wrong, it will.
> O'Tool's commentary : Murphy was an optimist.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE65J7ebkD45ZWqj1IRAogsAJ9HvJkAohMRQ9x9mITQGjD1AhTcEACbBAu5
> K8N91NwrtA5/fdX1yJsmfNE=
> =yVJy
> -----END PGP SIGNATURE-----
>
>