From 7b9fcc01f62558a6f517e2a23408e98c2688bd9e Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Mon, 7 Dec 2015 23:22:42 +0200 Subject: client-conf, daemon-conf: enable .d directories I want to enable client.conf.d, because in OpenEmbedded-core we have a graphical environment called Sato that runs as root. Sato needs to set allow-autospawn-for-root=true in client.conf, but the default configuration in OpenEmbedded-core should not set that option. With this patch, I can create a Sato-specific package that simply installs 50-sato.conf in /etc/pulse/client.conf.d without conflicting with the main client.conf coming from a different package. daemon.conf.d is enabled just because it would be strange to not support it while client.conf.d is supported. --- man/pulse-client.conf.5.xml.in | 19 +++++++++++++++---- man/pulse-daemon.conf.5.xml.in | 25 ++++++++++++++++++------- 2 files changed, 33 insertions(+), 11 deletions(-) (limited to 'man') diff --git a/man/pulse-client.conf.5.xml.in b/man/pulse-client.conf.5.xml.in index 1002dbe78..cca2219d0 100644 --- a/man/pulse-client.conf.5.xml.in +++ b/man/pulse-client.conf.5.xml.in @@ -23,15 +23,26 @@ License along with PulseAudio; if not, see .

~/.config/pulse/client.conf

- +

~/.config/pulse/client.conf.d/*.conf

@PA_DEFAULT_CONFIG_DIR@/client.conf

+

@PA_DEFAULT_CONFIG_DIR@/client.conf.d/*.conf

The PulseAudio client library reads configuration directives from - a file ~/.config/pulse/client.conf on startup and when that - file doesn't exist from - @PA_DEFAULT_CONFIG_DIR@/client.conf.

+ a configuration file on startup. If the per-user file + ~/.config/pulse/client.conf exists, it is used, otherwise the + system configuration file @PA_DEFAULT_CONFIG_DIR@/client.conf + is used. In addition to those main files, configuration directives can also + be put in files under directories + ~/.config/pulse/client.conf.d/ and + @PA_DEFAULT_CONFIG_DIR@/client.conf.d/. Those files have to + have the .conf file name extension, but otherwise the file names can be + chosen freely. The files under client.conf.d are processed in alphabetical + order. In case the same option is set in multiple files, the last file to + set an option overrides earlier files. The main client.conf file is + processed first, so options set in files under client.conf.d override the + main file.

The configuration file is a simple collection of variable declarations. If the configuration file parser encounters either ; diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in index d221585dc..0367b1ff3 100644 --- a/man/pulse-daemon.conf.5.xml.in +++ b/man/pulse-daemon.conf.5.xml.in @@ -23,18 +23,29 @@ License along with PulseAudio; if not, see .

~/.config/pulse/daemon.conf

- +

~/.config/pulse/daemon.conf.d/*.conf

@PA_DEFAULT_CONFIG_DIR@/daemon.conf

+

@PA_DEFAULT_CONFIG_DIR@/daemon.conf.d/*.conf

The PulseAudio sound server reads configuration directives from - a file ~/.config/pulse/daemon.conf on startup and when that - file doesn't exist from - @PA_DEFAULT_CONFIG_DIR@/daemon.conf. Please note that the - server also reads a configuration script on startup - default.pa which also contains runtime configuration - directives.

+ a configuration file on startup. If the per-user file + ~/.config/pulse/daemon.conf exists, it is used, otherwise the + system configuration file @PA_DEFAULT_CONFIG_DIR@/daemon.conf + is used. In addition to those main files, configuration directives can also + be put in files under directories + ~/.config/pulse/daemon.conf.d/ and + @PA_DEFAULT_CONFIG_DIR@/daemon.conf.d/. Those files have to + have the .conf file name extension, but otherwise the file names can be + chosen freely. The files under daemon.conf.d are processed in alphabetical + order. In case the same option is set in multiple files, the last file to + set an option overrides earlier files. The main daemon.conf file is + processed first, so options set in files under daemon.conf.d override the + main file.

+ +

Please note that the server also reads a configuration script on + startup. See .

The configuration file is a simple collection of variable declarations. If the configuration file parser encounters either ; -- cgit v1.2.1