summaryrefslogtreecommitdiff
path: root/pipewire-jack
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-03-05 12:10:13 +0100
committerWim Taymans <wtaymans@redhat.com>2020-03-05 12:12:46 +0100
commitb070752add3adea94a582b3d95a6e36684c34362 (patch)
tree5aaf93fca48bb27a809bbdaca5e301a6951c1d41 /pipewire-jack
parentc4b2be2aad373c7e19b7c613b0926e2ee3d5f214 (diff)
context: don't load rtkit by default
Don't load and use rt-kit by default because it can cause sigkill in the app, which is not good when it happens in a compositor. Make the module profile a comma-separated list of profiles and make it possible to explicitly load rtkit as well. load the rtkit profile as well in jack.
Diffstat (limited to 'pipewire-jack')
-rw-r--r--pipewire-jack/src/pipewire-jack.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c
index 3cff783c..9cc7a651 100644
--- a/pipewire-jack/src/pipewire-jack.c
+++ b/pipewire-jack/src/pipewire-jack.c
@@ -2204,7 +2204,12 @@ jack_client_t * jack_client_open (const char *client_name,
client->node_id = SPA_ID_INVALID;
strncpy(client->name, client_name, JACK_CLIENT_NAME_SIZE);
client->context.loop = pw_thread_loop_new(client_name, NULL);
- client->context.context = pw_context_new(pw_thread_loop_get_loop(client->context.loop), NULL, 0);
+ client->context.context = pw_context_new(
+ pw_thread_loop_get_loop(client->context.loop),
+ pw_properties_new(
+ PW_KEY_CONTEXT_PROFILE_MODULES, "default,rtkit",
+ NULL),
+ 0);
client->allow_mlock = client->context.context->defaults.mem_allow_mlock;
spa_list_init(&client->context.free_objects);
spa_list_init(&client->context.nodes);