Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #178186
| From | <tomas@tuxteam.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: The same environment variables everywhere |
| Date | 2017-02-27 09:20 +0100 |
| Message-ID | <tfoHg-2QD-11@gated-at.bofh.it> (permalink) |
| References | <tf67E-6Iq-1@gated-at.bofh.it> <tfd97-2SY-9@gated-at.bofh.it> <tflzI-iZ-1@gated-at.bofh.it> <tfoxz-2Ks-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
-----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-----
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The same environment variables everywhere Teemu Likonen <tlikonen@iki.fi> - 2017-02-26 13:30 +0100
Re: The same environment variables everywhere Matthias Bodenbinder <matthias@bodenbinder.de> - 2017-02-26 21:00 +0100
Re: The same environment variables everywhere Stefan Monnier <monnier@iro.umontreal.ca> - 2017-02-27 06:00 +0100
Re: The same environment variables everywhere deloptes <deloptes@gmail.com> - 2017-02-27 09:10 +0100
Re: The same environment variables everywhere <tomas@tuxteam.de> - 2017-02-27 09:20 +0100
Re: The same environment variables everywhere GiaThnYgeia <GiaThnYgeia@openmailbox.org> - 2017-02-27 12:40 +0100
Re: The same environment variables everywhere Elimar Riesebieter <riesebie@lxtec.de> - 2017-02-27 13:40 +0100
Re: The same environment variables everywhere Teemu Likonen <tlikonen@iki.fi> - 2017-02-27 14:30 +0100
Re: The same environment variables everywhere David Wright <deblis@lionunicorn.co.uk> - 2017-02-27 18:10 +0100
Re: The same environment variables everywhere Teemu Likonen <tlikonen@iki.fi> - 2017-02-27 19:00 +0100
Re: The same environment variables everywhere Nicolas George <george@nsup.org> - 2017-02-27 19:20 +0100
systemd service environment Teemu Likonen <tlikonen@iki.fi> - 2017-02-27 19:50 +0100
Re: The same environment variables everywhere deloptes <deloptes@gmail.com> - 2017-02-27 19:30 +0100
Re: The same environment variables everywhere Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-27 14:20 +0100
csiph-web