-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Feb 27, 2017 at 09:07:19AM +0100, deloptes wrote: > Stefan Monnier wrote: > > >>> I would like to hear some ideas on how to set various environment > >>> variables (PATH, MANPATH, EDITOR etc.) in one place that would make them > >>> effective everywhere. My "everywhere" means: > >>> - X session started through lightdm and ~/.xsession script > >>> - Linux console login (bash) > >>> - user's systemd services > >> Put them into /etc/environment. > > > > I haven't re-tried recently, but last time: > > - It never worked for me. > > - It can't hold user-specific settings. > > - It can't *compute* a setting. > > > > > > Stefan > > IMO there is a good reason for so many places where you can put variables. > In fact it is not good to put X related variables in a non X session - > right?!
There will be some that want to be different. There will be some that want to be the same. The OP's question was about the latter, right? > So I do distinguish between settings for X session and for not X session - > at least two places for the variables. > Further more there are global and user specific ... etc Yes, all of those! But I don't see how that's an answer to the OP's legitimate question: how to keep things that belong together in one place, instead of repeating it in every bit of config? regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAliz32wACgkQBcgs9XrR2kbVmgCdHKWfY4folfhcY217hEGmjEdC 19wAnjlZrYwi5lqVCoAvj5bXWHf70qu+ =drZS -----END PGP SIGNATURE-----