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

Re: Globally setting environment variables with xdm



On Sun, Mar 11, 2001 at 12:31:19PM +0100, Christoph Groth wrote:
> Hello, 
> 
> I'd like to set some environment variables globally for the whole
> system.  Before I began using xdm /etc/profile was fine for that.  But
> now X is started directly by xdm which is started by init, there is no
> mother login shell for all user processes.
> 
> Is there a way of telling xdm to execute /etc/profile.  If not, how
> could I achieve the desired effect in some other way?

chnage the first line of /etc/X11/Xsession from:

#!/bin/sh 

to 

#!/bin/bash --login

and use a non-broken *dm such as wdm in unstable.  it respects pam_env
and thus loads /etc/environment.  

-- 
Ethan Benson
http://www.alaska.net/~erbenson/

Attachment: pgpbTTz57QsKF.pgp
Description: PGP signature


Reply to: