Use PIPEWIRE_DAEMON env var to start a server

Check the PIPEWIRE_DAEMON environment variable and start a server
if it is set.
This commit is contained in:
Wim Taymans 2017-09-18 21:48:02 +02:00
parent 2f6c4544fe
commit 3b0eec4bf8

View file

@ -850,7 +850,9 @@ static bool module_init(struct pw_module *module, struct pw_properties *properti
d->module = module;
d->properties = properties;
val = pw_properties_get(pw_core_get_properties(core), PW_CORE_PROP_DAEMON);
val = getenv("PIPEWIRE_DAEMON");
if (val == NULL)
val = pw_properties_get(pw_core_get_properties(core), PW_CORE_PROP_DAEMON);
if (val && pw_properties_parse_bool(val)) {
if (impl_add_server(this, core, properties) == NULL)
return false;