LADI
/
spa
1
Fork 0

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

@ -95,6 +95,7 @@ pulse.properties = {
# client.access = "restricted" # permissions for clients
#}
]
#server.dbus-name = "org.pulseaudio.Server"
#pulse.min.req = 128/48000 # 2.7ms
#pulse.default.req = 960/48000 # 20 milliseconds
#pulse.min.frag = 128/48000 # 2.7ms

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);