Environment variables

Derek Broughton news at pointerstop.ca
Tue May 27 20:17:13 UTC 2008


Nils Kassube wrote:

> Robert Holtzman wrote:
>> From what I can see, the latest Ubuntu doesn't use an .environment
>> file anywhere on the system. Environment variables variables are in
>> $HOME/.profile.
> 
> Thanks for the hint. I didn't remember ~/.profile when I needed a
> modified /etc/environment for one user only. Therefore I tried
> ~/.environment and it worked (at least with KDE). Actually here both
> ~/.profile and ~/.environment work.

I would expect then, that they work just like /etc/profile
and /etc/environment - ie, profile is a shell script and environment isn't,
so strictly they will both work, but .environment won't do expansion of
variables or any other shell stuff  (I believe there was a post here about
the difference last week).
-- 
derek





More information about the ubuntu-users mailing list