mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
conf-parser: add support for .d directories
This allows a configuration scheme where after loading configuration from "somefile", the parser loads configuration from files in directory "somefile.d". This feature needs to be enabled on a per-file basis, though, and this patch doesn't yet enable the feature for any files.
This commit is contained in:
parent
d97460045c
commit
1d7ce90139
6 changed files with 52 additions and 8 deletions
|
|
@ -204,7 +204,7 @@ static void update_rule(struct rule *r) {
|
|||
table[0].data = &r->application_name;
|
||||
table[1].data = &r->icon_name;
|
||||
|
||||
if (pa_config_parse(fn, NULL, table, NULL, r) < 0)
|
||||
if (pa_config_parse(fn, NULL, table, NULL, false, r) < 0)
|
||||
pa_log_warn("Failed to parse .desktop file %s.", fn);
|
||||
|
||||
pa_xfree(fn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue