1 |
On Saturday 16 July 2005 04:58 pm, Martin Schlemmer wrote: |
2 |
> On Sat, 2005-07-16 at 19:03 +0200, Marius Mauch wrote: |
3 |
> > On Fri, 15 Jul 2005 21:34:09 -0400 |
4 |
> > |
5 |
> > Mike Frysinger <vapier@g.o> wrote: |
6 |
> > > we could care less what users do with /etc/profile.d ... the point is |
7 |
> > > that *only* users should use /etc/profile.d ... we dont want random |
8 |
> > > Gentoo developer Foo installing some Bar.sh into /etc/profile.d with |
9 |
> > > package app-crap/FooBar |
10 |
> > |
11 |
> > Would the following in /et/profile be a solution to this problem? |
12 |
> > |
13 |
> > for x in $( < /etc/profile.d/.default); do |
14 |
> > source "/etc/profile.d/${x}" |
15 |
> > done |
16 |
> > |
17 |
> > That way devs could install stuff there, but it would only be run if |
18 |
> > users added it to the .default file. |
19 |
> |
20 |
> If we do something like this, I'll rather not source it, but run it via |
21 |
> the current shell. This should discourage devs to install stuff |
22 |
> touching the environment there rather than /etc/env.d/. |
23 |
|
24 |
that kind of limits the usefulness of profile.d then ... and again, not too |
25 |
intuitive when it comes to the behaviors users would expect |
26 |
-mike |
27 |
-- |
28 |
gentoo-dev@g.o mailing list |