[Mesa-dev] [PATCH 1/2] xmlconfig: read more config files from drirc.d/

Yu, Qiang Qiang.Yu at amd.com
Fri Aug 3 01:57:31 UTC 2018


OK, I'll move /etc/drirc to /usr/share/drirc.d.

For /etc/drirc and /etc/drirc.d, I agree to keep /etc/drirc for keeping
user convention of the previously usage of this file. As newly added
/etc/drirc.d, just for admin's flexibility, I can drop it if no clear needs
for now.

Regards,
Qiang

________________________________________
From: mesa-dev <mesa-dev-bounces at lists.freedesktop.org> on behalf of Michel Dänzer <michel at daenzer.net>
Sent: Thursday, August 2, 2018 9:54:51 PM
To: Eric Engestrom
Cc: mesa-dev at lists.freedesktop.org
Subject: Re: [Mesa-dev] [PATCH 1/2] xmlconfig: read more config files from drirc.d/

On 2018-08-02 02:50 PM, Eric Engestrom wrote:
> On Thursday, 2018-08-02 11:33:05 +0200, Michel Dänzer wrote:
>> On 2018-08-01 01:10 PM, Qiang Yu wrote:
>>> Add two places for hosting drirc config files:
>>> /usr/share/drirc.d/ /etc/drirc.d/
>>>
>>> Driver and application can put their drirc files in
>>> these places with name xxx.conf. Config files will be
>>> read and applied in file name alphabete order.
>>>
>>> So there are four places for drirc listed in order:
>>> 1. /usr/share/drirc.d/
>>> 2. /etc/drirc.d/
>>> 3. /etc/drirc
>>> 4. ~/.drirc
>>>
>>> Signed-off-by: Qiang Yu <Qiang.Yu at amd.com>
>>
>> Mesa's own drirc should also be moved to
>> $(datadir)/drirc.d/00-mesa-defaults.conf, either in this patch or a
>> follow-up one.
>
> Agreed, which means there won't be a /etc/drirc anymore.
>
> If we do keep it though, I would expect /etc/drirc.d/10-foo.conf to
> override /etc/drirc; in other words, I would swap 2 & 3 in that list
> (and in the code).

Hmm, based on experience with Xorg, I'd rather keep /etc/drirc and not
add /etc/drirc.d/ than the other way around.

Is there a use case for an administrator using multiple snippets in
/etc/drirc.d/ ?


--
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
mesa-dev mailing list
mesa-dev at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list