[PATCH] xfree86: Allow a config directory for multiple config files

Dan Nicholson dbn.lists at gmail.com
Mon Dec 7 21:07:01 PST 2009


On Mon, Dec 7, 2009 at 8:05 PM, Daniel Stone <daniel at fooishbar.org> wrote:
> On Tue, Dec 08, 2009 at 12:47:26PM +1000, Peter Hutterer wrote:
>> On Mon, Dec 07, 2009 at 06:33:41PM -0800, Alan Coopersmith wrote:
>> > Peter Hutterer wrote:
>> > > One more thing about this patchset. what's the behaviour if the server is
>> > > run with Xorg -config foobar.conf?
>> > >
>> > > Does it still scan xorg.conf.d? If so, we need an option to disable that so
>> > > one can force _only_ the use of a custom xorg.conf, without system
>> > > configurations interfering.
>> >
>> > A command line option or a setting in the foobar.conf ?
>>
>> I'd say a commandline option at least. I'm not sure how much use a .conf
>> option would be to disable scanning of the xorg.conf directory, it seems
>> execessive.
>
> How about:
>  * -config can be specified multiple times
>  * directories can be specified as well as files
>  * any specification on the command line overrides the default
>  * the default is $(sysconfdir)/X11/xorg.conf:$(sysconfdir)/X11/xorg.conf.d
>
> That should generally DTRT.

That seems reasonable, but it's a bit more code. Right now (what I'm
about to post) -config is independent of config directory, and the
directory is always scanned for. How about I post my patch as is and
we can see what else might be wanted.

--
Dan


More information about the xorg-devel mailing list