Where to put the assignment of global environment variables

Volker Wysk post at volker-wysk.de
Tue Sep 13 05:49:13 UTC 2022


Am Dienstag, dem 13.09.2022 um 07:37 +0200 schrieb Volker Wysk:
> Hi!
> 
> I want to do it right. I have global variables (PATH, MANPATH, INFOPATH),
> which need to be extended. I've tried it in /etc/environment, but that
> didn't have any effect. On the web, I've found the advice to put it in a
> script in /etc/profile.d, but there it gets evaluated *multiple* times.
> 
> Is that normal? Or where's the intended place for those environment
> variables?

Now I'm perplexed. I've rebooted and suddenly it works as expected. Moreso,
my "info" terminal in Emacs, which was broken, works again.

With shaking of my head,
Volker




More information about the ubuntu-users mailing list