From d85862af712ab98b604c9c946effb629c63e7c99 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 4 Feb 2021 11:48:45 +0100 Subject: [PATCH] module-access: fall back to client requested access mode When nothing else was decided, use the client requested access method. The idea is that pipewire-pulse will detect a flatpak client an performs the pipewire connection on behalf of the client, requesting flatpak access restrictions. --- src/modules/module-access.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/module-access.c b/src/modules/module-access.c index 5bc6bff2a..bc19a2ed4 100644 --- a/src/modules/module-access.c +++ b/src/modules/module-access.c @@ -229,7 +229,8 @@ context_check_access(void *data, struct pw_impl_client *client) goto wait_permissions; } #endif - access = "unrestricted"; + if ((access = pw_properties_get(props, PW_KEY_CLIENT_ACCESS)) == NULL) + access = "unrestricted"; granted: pw_log_info(NAME" %p: client %p '%s' access granted", impl, client, access);