modules: support getting app_id in pw_check_flatpak

Support getting the Flatpak application ID from the .flatpak-info file,
similarly as what xdg-desktop-portal does.
This commit is contained in:
Pauli Virtanen 2022-07-30 21:29:42 +03:00 committed by Wim Taymans
parent 5e5339ce6c
commit 3730e54484
6 changed files with 89 additions and 5 deletions

View file

@ -252,7 +252,7 @@ context_check_access(void *data, struct pw_impl_client *client)
(access = pw_properties_get(impl->properties, "access.force")) != NULL)
goto wait_permissions;
res = pw_check_flatpak(pid);
res = pw_check_flatpak(pid, NULL, NULL);
if (res != 0) {
if (res < 0) {
if (res == -EACCES) {