mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 08:45:44 +00:00
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:
parent
5a12b35be7
commit
782d5af050
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue