Java Mailing List Archive

http://www.redhatconfig.com/

Home » Ubuntu Technical Support »

Re: /etc/environment, variables aren't expanded

Florian Diesch

2008-05-17

Replies:

Author LoginPost Reply
TomasN <nechtom@(protected):

> Dne Saturday 17 May 2008 04:47:26 Cameron Hutchison napsal(a):
>
>> I personally think /etc/environment is rather useless for the reasons
>> you've just found. It is too simplistic to just have KEY=VAL lines is a
>> lot of cases.
>
> Me too.
> I was just wondering why so many people recommend to put variables there.

* /etc/environment works with every shell, not just with sh-like shell
like /etc/profile does

* /etc/profile only gets read by login shells. For graphical logins
you don't get a login shell so it's up to the X session
configuration to read /etc/profile. It seems that gdm and kdm are
doing this with most Linux distributions, but others may not.



 Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------

--
ubuntu-users mailing list
ubuntu-users@(protected)
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.