mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pulse-server: add a pulse.cmd section
Add a new config section that can contain a set of commands to run after starting. There is only load-module available now but it can be used to remove the dependency on pactl when starting the server.
This commit is contained in:
parent
87d2719148
commit
b29200ee82
5 changed files with 185 additions and 3 deletions
|
|
@ -57,6 +57,7 @@
|
|||
#include "client.h"
|
||||
#include "collect.h"
|
||||
#include "commands.h"
|
||||
#include "cmd.h"
|
||||
#include "dbus-name.h"
|
||||
#include "defs.h"
|
||||
#include "extension.h"
|
||||
|
|
@ -5670,6 +5671,7 @@ struct pw_protocol_pulse *pw_protocol_pulse_new(struct pw_context *context,
|
|||
#ifdef HAVE_DBUS
|
||||
impl->dbus_name = dbus_request_name(context, "org.pulseaudio.Server");
|
||||
#endif
|
||||
cmd_run(impl);
|
||||
|
||||
return (struct pw_protocol_pulse *) impl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue