[PATCH v2 1/2] conf-parser: add support for .d directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-12-04 at 09:29 -0300, Felipe Sateler wrote:
> On 4 December 2015 at 02:58, Tanu Kaskinen <tanuk at iki.fi> wrote:
> > + * If use_dot_d is true, then before parsing the file named by the filename
> > + * argument, the function will parse all files ending with ".conf" in
> > + * alphabetical order from a directory whose name is filename + ".d", if such
> > + * directory exists.
> 
> This is opposite to how other software (eg systemd) work: first the
> main file is read, and then the .d/*.conf files are read to override
> the configurations.
> 
> So if a distro default has an uncommented line, the .d should override
> that line. This would allow (in the future) to extend the search path
> to /usr/share/pulseaudio, and ship the defaults (uncommented) there.
> Then local configuration can be done via dropin files.

All advice given to users so far has been to modify the main files,
because nothing else has existed. If users put their changes to the
main files and distros put their changes to the .d files, that will be
compatible with existing advice on the internet.

-- 
Tanu


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux