[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/profile and X



On Sat, Jun 14, 2003 at 12:31:36AM +0100, Ben Kal wrote:
> On 12 Jun 2003 David Fokkema <dfokkema@ileos.nl> wrote:
> > .... and what file I need to edit to have a _system-wide_ variable
> > declaration.
> 
> /etc/profile, IMO. Just make sure it is also read at the start of each X
> session by inserting a line to source /etc/profile into /etc/Xsession or
> into every user's .xsession.
> 
> AFAIK there is no file in which to set environment variables that then would
> *automatically* be available in X sessions as well as in shells on virtual
> consoles.

Christoph Groth mentioned to me that I should edit /etc/environment. It
is parsed by PAM for both login and kdm. It works very well! I don't
have to edit other things, just this one file.

David



Reply to: