Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.18] Camera: use an empty app id for host apps #1522

Merged

Conversation

jadahl
Copy link
Collaborator

@jadahl jadahl commented Dec 3, 2024

Backport of #1512.

Sending an app id that doesn't resolve to valid app info (e.g. a desktop
file is not found) will automatically reject camera request, because the
backend is not able to verify whether the app (based on app id) runs in
the background. Same will happen if the app id resolves to an app where
our app was started from. This happens for example when you start apps
in GNOME using Alt + F2, where we get invalid app id from cgroups and
since it doesn't find opened application window for this app, it will
automatically reject the request. Using an empty id fixes this problem.

(cherry picked from commit 6cd99b0)
@jadahl jadahl changed the base branch from main to xdg-desktop-portal-1.18 December 3, 2024 14:10
@jadahl jadahl merged commit 45b5f7a into flatpak:xdg-desktop-portal-1.18 Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Triaged
Development

Successfully merging this pull request may close these issues.

2 participants