mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
man: update man page
Add PIPEWIRE_CONFIG_PREFIX environment variable as well
This commit is contained in:
parent
a243d126db
commit
58d2fe4440
2 changed files with 6 additions and 3 deletions
|
@ -21,8 +21,9 @@ This file is part of PipeWire.
|
||||||
file.</p>
|
file.</p>
|
||||||
|
|
||||||
<p>The config file in the default location is used but the
|
<p>The config file in the default location is used but the
|
||||||
environment variable PIPEWIRE_CONFIG_FILE can be used to specify
|
environment variables PIPEWIRE_CONFIG_DIR, PIPEWIRE_CONFIG_PREFIX
|
||||||
an alternative config file.</p>
|
and PIPEWIRE_CONFIG_NAME can be used to specify an alternative config
|
||||||
|
directory, subdirectory and file respectively.</p>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<section name="General Commands">
|
<section name="General Commands">
|
||||||
|
|
|
@ -199,7 +199,9 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
||||||
goto error_free;
|
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");
|
conf_name = getenv("PIPEWIRE_CONFIG_NAME");
|
||||||
if (conf_name == NULL)
|
if (conf_name == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue