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

Re: setting Env variable, and in Debian



Hi,

Thanks all for your responses.

Now, I got the situation that the PATH and ENV
VARIABLE  entries in /ete/profile do not show up
neither in text nor X mode. It is either /etc/profile
is not executed, or those entries were overwritten by
other scripts.  As far as overwritten is concern, PATH
is fine (it may have been defined in some other
scripts    , but other varaiables such as JAVA_HOME,
JAVA_COMPILER are very unlikely candidates!).

As Eric Hanchrow suggested, I may have to study Shell
in terms of how it works.  Which manual do I have to
study for this?

I am using KDE, and use startx to start.

Thanks.

Damar     

--- Mark Roach <mrroach@okmaybe.com> wrote:
> On Wed, 2002-08-21 at 01:51, damar thapa wrote:
> > Hi, 
> > 
> > I have to set Env variables such as JAVA_HOME, and
> > PATH.  Since it has to be for every one, I put it
> in
> > /etc/profile file.  But to my surprise, it works
> only
> > if I log into in text mode, not in X window.
> > 
> > Are there any other files that should work for any
> > environments, X or text.
> > 
> 
> interesting, it doesn't seem like there is a
> standard place to set
> environment variables for X. It looks like it might
> depend on the login
> manager/window manager. KDM allows you to set some
> things like PATH and
> LD_LIBRARY_PREFIX within /etc/kde2/kdm/kdmrc but it
> also seems to set
> some of its own, GS_LIB, for example in
> /usr/bin/kde2
> 
> /etc/profile is for "Bourne compatible shells
> (bash(1), ksh(1), ash(1),
> ...)." which doesn't include X :)
> 
> maybe a little more info about what environment you
> are running under,
> KDE, GNOME, etc, also are the users using startx or 
> [X|K|G]DM?
> 
> -Mark
> 
> 
> 

> ATTACHMENT part 2 application/pgp-signature
name=signature.asc



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



Reply to: