On Thursday, June 25, 2020 10:27:06 PM CEST Michael Catanzaro wrote:
> On Thu, Jun 25, 2020 at 8:40 pm, Ian McInerney
> <[email protected]> wrote:
>
> > Are you sure this will work? I just ran a test, and putting a new
> > config file inside /usr/lib/environment.d only works for Gnome, and
> > doesn't work for Mate, Cinnamon or SSH (tested by opening a terminal
> > in the respective session and examining the environment variables).
> > From what I gather in [1], systemd is not a standard way of
> > interacting with the user's environment variables, and only Gnome has
> > decided to use it. So this method of implementing this change seems
> > to be making the default editor for Gnome be nano and not changing
> > the defaults for anyone else.
>
>
> Erm... well, no. Plan foiled?
>
> The goal of using /usr/lib/environment.d was to avoid setting more
> environment variables in random places in various shell scripts. But if
> that only works in GNOME, I guess it's not a great solution after all.
Gentoo Linux uses the /etc/env.d tree to globally set environment variables:
https://devmanual.gentoo.org/tasks-reference/environment/index.html
It worked there long time before systemd was invented. But clearing this
up in Fedora would ask for a separate system-wide change I guess...
Kamil
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]