From 3b0eec4bf8dc0b34141bc9f377959ec747dc4eb6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Sep 2017 21:48:02 +0200 Subject: [PATCH] Use PIPEWIRE_DAEMON env var to start a server Check the PIPEWIRE_DAEMON environment variable and start a server if it is set. --- src/modules/module-protocol-native.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/module-protocol-native.c b/src/modules/module-protocol-native.c index 95d9c3fe5..797060473 100644 --- a/src/modules/module-protocol-native.c +++ b/src/modules/module-protocol-native.c @@ -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;