Web lists-archives.com

Re: Ideal place to set environment variables

On Tue, Mar 20, 2018 at 12:29:53AM +0530, Subhadip Ghosh wrote:
> I went through the below link:
> https://wiki.debian.org/EnvironmentVariables
> While it was very informative, it was not evident from it that what
> the standard or preferred place is for setting an environment variable
> if I want it to be available from both graphical applications as well as
> from terminal (bash).

Well, that's the problem: there isn't a single place that is read by
both kinds of logins (shell and Display Manager).  And don't even get
us started on GNOME.

> I would prefer to set it at a single location.

Such a thing does not exist.  You'll have to choose one and then "dot
it in" from the other one.  Or choose a third location and "dot it in"
from both of the places that are actually used.

(That still won't save you from GNOME's stupidity, of course.)

If there existed a single, universal, simple answer, don't you think
we would have put it on the wiki page?