Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] /etc/profile.d/
Date: Sun, 17 Jul 2005 00:27:41
Message-Id: 200507162022.29823.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] /etc/profile.d/ by Marius Mauch
1 On Saturday 16 July 2005 01:03 pm, Marius Mauch wrote:
2 > On Fri, 15 Jul 2005 21:34:09 -0400
3 >
4 > Mike Frysinger <vapier@g.o> wrote:
5 > > we could care less what users do with /etc/profile.d ... the point is
6 > > that *only* users should use /etc/profile.d ... we dont want random
7 > > Gentoo developer Foo installing some Bar.sh into /etc/profile.d with
8 > > package app-crap/FooBar
9 >
10 > Would the following in /et/profile be a solution to this problem?
11 >
12 > for x in $( < /etc/profile.d/.default); do
13 > source "/etc/profile.d/${x}"
14 > done
15 >
16 > That way devs could install stuff there, but it would only be run if
17 > users added it to the .default file.
18
19 that kind of limits the intuitiveness of profile.d ... plus, not like they
20 couldnt just do 'echo blah >> /etc/profile.d/.default' at the end of
21 pkg_postinst or something
22 -mike
23 --
24 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] /etc/profile.d/ Marius Mauch <genone@g.o>