.bash_profile not run when using graphical login

Ville Vainio vivainio at kolumbus.fi
Tue Oct 5 15:28:31 UTC 2004


On Tue, 2004-10-05 at 09:33 +0100, Ross Burton wrote:

> Debian Policy says packages should work with no environmental variables
> defined.  For the Java example, this is why there are /usr/bin/java
> (etc.) alternatives which JVMs register with.

Well, the JDK from Sun didn't, for one ;-). I believe the user will
definitely need to find the way to set environment variables for himself
and Everyone.


> .bash_profile isn't run at gdm login as you are not logging into bash,
> but GDM.  Try putting sh code into ~/.gnomerc.
> 
> My home desktop (I believe) has common login envars set in ~/.profile,
> which is sourced from .gnomerc and .bash_login.

This should really be documented in all the places the user will look
into. /etc/profile should have a comment telling the user what file the
user should edit to change the global environment. The same applies to
user specific environment. 

Red Hat has profile.d directory where global customizations can be
placed. It seemed like a good idea to me. If Debian has no will to go
the same route (and Ubuntu wishes to follow), some comments in the
related files might be in order. ".gnomerc" is probably the last place
people will look into...





More information about the ubuntu-users mailing list