pulse-server: add server.dbus-name option

Add an option to set the name for the dbus service. Setting an
empty name will skip dbus registration.

See #2987
This commit is contained in:
Wim Taymans 2023-05-17 12:16:16 +02:00
parent 5a12b35be7
commit 782d5af050
2 changed files with 6 additions and 1 deletions

View file

@ -5565,7 +5565,11 @@ struct pw_protocol_pulse *pw_protocol_pulse_new(struct pw_context *context,
&context_events, impl);
#ifdef HAVE_DBUS
impl->dbus_name = dbus_request_name(context, "org.pulseaudio.Server");
str = pw_properties_get(props, "server.dbus-name");
if (str == NULL)
str = "org.pulseaudio.Server";
if (strlen(str) > 0)
impl->dbus_name = dbus_request_name(context, str);
#endif
cmd_run(impl);