summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-05 17:46:51 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-05 17:46:51 +0200
commitcb14b41537b27bf96d32890e60b54ac7ede13c5f (patch)
treeafadc6c602851712b495a44915c9aa4e541fb427
parent2cf5bf7ac1e48e394f9f01cb233b095e313f98bb (diff)
pw-cat: enable rtkit
-rw-r--r--src/tools/pw-cat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/pw-cat.c b/src/tools/pw-cat.c
index 3d66a396..d827c811 100644
--- a/src/tools/pw-cat.c
+++ b/src/tools/pw-cat.c
@@ -1437,7 +1437,11 @@ int main(int argc, char *argv[])
pw_loop_add_signal(l, SIGINT, do_quit, &data);
pw_loop_add_signal(l, SIGTERM, do_quit, &data);
- data.context = pw_context_new(l, NULL, 0);
+ data.context = pw_context_new(l,
+ pw_properties_new(
+ PW_KEY_CONTEXT_PROFILE_MODULES, "default,rtkit",
+ NULL),
+ 0);
if (!data.context) {
fprintf(stderr, "error: pw_context_new() failed: %m\n");
goto error_no_context;