Newsgroups: comp.windows.x
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!noc.near.net!howland.reston.ans.net!ira.uka.de!Germany.EU.net!horga!moepi.do.open.de!bernward
From: bernward@moepi.do.open.de (Bernward Averwald)
Subject: Re: xdm and env. vars
Message-ID: <1993Apr30.182357.576@moepi.do.open.de>
Organization: Home
References: <9304292140.AA29951@haji.haji_sun>
Date: Fri, 30 Apr 93 18:23:57 GMT
Lines: 33

In article <9304292140.AA29951@haji.haji_sun> fwr8bv@fin.af.MIL writes:
>Hi,
>
>I am using xdm on X11R5 with OW3 and Xview3 on Sun3s and SPARCs running 
>SunOS 4.1.1.  Prior to using xdm, I used to set PATH and other environment
>variables (like MANPATH, HELPPATH, ARCH, etc) in my .login file.  With xdm,
>the .login file doesn't get executed and therefore neither the olwm
>root-window nor my applications know about these variables.

I always use the following in my .[t]cshrc:

...
f ( $?LOGIN == 0 ) then
   source $home/.login
endif
...

and in .login:

...
setenv LOGIN 1
...

So I don't need to set all environment variables in my .cshrc, but they get
set if I login via xdm or xon | xrsh | rx and so on.

Hope this helps,

Bernward
-- 
Bernward Averwald, Heinrichstr. 42, D-4600 Dortmund 1, Voice: +49 231 144048
FAX: +49 231 144047, e-mail: bernward@moepi.do.open.de            (b@rcc.de)
                     I think I need a Lear Jet
