mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-30 06:46:49 -04:00
tools: connect to the manager socket by default
This gives the tools unrestricted access by default if access.socket is defined in the configuration access module.
This commit is contained in:
parent
b12b7f785e
commit
14b74962d6
9 changed files with 56 additions and 15 deletions
|
|
@ -872,7 +872,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
struct data data = { 0 };
|
||||
struct pw_loop *l;
|
||||
const char *opt_remote = NULL;
|
||||
const char *opt_remote = NULL, *remote_name;
|
||||
static const struct option long_options[] = {
|
||||
{ "batch-mode", no_argument, NULL, 'b' },
|
||||
{ "iterations", required_argument, NULL, 'n' },
|
||||
|
|
@ -947,10 +947,14 @@ int main(int argc, char *argv[])
|
|||
|
||||
pw_context_load_module(data.context, PW_EXTENSION_MODULE_PROFILER, NULL, NULL);
|
||||
|
||||
remote_name = "[" PW_DEFAULT_REMOTE "-manager," PW_DEFAULT_REMOTE "]";
|
||||
if (opt_remote)
|
||||
remote_name = opt_remote;
|
||||
|
||||
data.core = pw_context_connect(data.context,
|
||||
pw_properties_new(
|
||||
PW_KEY_REMOTE_INTENTION, "manager",
|
||||
PW_KEY_REMOTE_NAME, opt_remote,
|
||||
PW_KEY_REMOTE_NAME, remote_name,
|
||||
NULL),
|
||||
0);
|
||||
if (data.core == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue