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:
Wim Taymans 2022-12-12 16:46:16 +01:00
parent 87d2719148
commit b29200ee82
5 changed files with 185 additions and 3 deletions

View file

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