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

Michel Dänzer michel at daenzer.net
Thu Aug 2 13:54:51 UTC 2018


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


More information about the mesa-dev mailing list