On Tue, Oct 02, 2001 at 02:19:53PM +1000, Simon Wong wrote:
> When I log into Gnome (Ximian) my environment variables defined in my
> ~/.bash_profile are not set.  They are set,however, if I use a login
> terminal.

That's because .bash_profile is only executed when you run bash as a
login shell. When you login via gdm or xdm or kdm, that doesn't happen.
When you login from a console window (I think that's what you mean by
the last bit), you've already had bash running and so the X session
inherits the exported environment variables.

> Can anyone tell me how to have Gnome use my environment variables by
> default or is there some probelm with doing that?

If you are using gdm to login (the standard one if you haven't fiddled
with anything after the Ximian packages were installed), then
$HOME/.gnomerc should be sourced right after you login (it needs to be
executable). So put any variables you want available in the session in
that file.

Malcolm

-- 
I doubt, therefore I might be.

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to