man: update man page

Add PIPEWIRE_CONFIG_PREFIX environment variable as well
This commit is contained in:
Wim Taymans 2021-02-12 09:49:02 +01:00
parent a243d126db
commit 58d2fe4440
2 changed files with 6 additions and 3 deletions

View file

@ -21,8 +21,9 @@ This file is part of PipeWire.
file.</p>
<p>The config file in the default location is used but the
environment variable PIPEWIRE_CONFIG_FILE can be used to specify
an alternative config file.</p>
environment variables PIPEWIRE_CONFIG_DIR, PIPEWIRE_CONFIG_PREFIX
and PIPEWIRE_CONFIG_NAME can be used to specify an alternative config
directory, subdirectory and file respectively.</p>
</description>
<section name="General Commands">

View file

@ -199,7 +199,9 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
goto error_free;
}
conf_prefix = pw_properties_get(properties, PW_KEY_CONFIG_PREFIX);
conf_prefix = getenv("PIPEWIRE_CONFIG_PREFIX");
if (conf_prefix == NULL)
conf_prefix = pw_properties_get(properties, PW_KEY_CONFIG_PREFIX);
conf_name = getenv("PIPEWIRE_CONFIG_NAME");
if (conf_name == NULL)