mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05: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
2 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue