access: only check for Flatpak on Linux

This commit is contained in:
Greg V 2020-11-09 01:16:46 +03:00 committed by Wim Taymans
parent c1cda26ce8
commit 2ae840bc12

View file

@ -189,6 +189,7 @@ context_check_access(void *data, struct pw_impl_client *client)
(access = pw_properties_get(impl->properties, "access.force")) != NULL)
goto wait_permissions;
#if defined(__linux__)
res = check_flatpak(client, pid);
if (res != 0) {
if (res < 0) {
@ -205,6 +206,7 @@ context_check_access(void *data, struct pw_impl_client *client)
access = "flatpak";
goto wait_permissions;
}
#endif
access = "unrestricted";
granted: