Ticket #44 (closed enhancement: invalid)
Opened 2 years ago
Last modified 2 years ago
Add some way to set system environment variables
Reported by: | Donnie Berkholz <dberkholz@gentoo.org> | Owned by: | roy |
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | rc | Version: | |
Keywords: | Cc: |
Description
< dberkholz@> anyone know where EDITOR is supposed to get set with openrc?
< Uber+> openrc isn't responsible for the setting of default shell env
< dberkholz@> Uber: i don't doubt there's a reason. what i'm looking for is a solution
< Uber+> /etc/env.d/XXeditor would be a good bet
< Uber+> for Gentoo that is
< dberkholz@> hmm, i'm not a huge fan of this use of numbers of env.d files as basic configuration
< Uber+> however, it is the Gentoo default
< Uber+> it's just used for sorting purposes - I think you can give the file any name you like
< Uber+> however, EDITOR in 99zzz trumps EDITOR in editor
< dberkholz@> by numbers, i mean numerous
< dberkholz@> not exactly how they're named
< dberkholz@> it doesn't feel like great usability to me to ask people to browse through env.d looking for files they might want to edit
< dberkholz@> combining machine-generated and human-edited files feels wrong
< Uber+> ok, file a bug asking that /etc/profile inherit /etc/profile.env.local or some such
< dberkholz@> that would work for XSESSION too, i suppose
It would be nice to have something similar to env.d/ (i.e., a directory) but purely designed for configuration rather than package-generated files.
Change History
comment:226 Changed 2 years ago by roy
- Status changed from new to resolved
- Resolution set to invalid
By file a bug I meant file a bug with Gentoo :)
/etc/profile is controlled by bash, and the various BSDs have differing ways of setting env vars.