Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Camera: use an empty app id in access dialog in case of invalid app id
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. This happens for example when you start Firefox in GNOME using Alt + F2 shortcut, where we get firefox" as app id from cgroups and since it doesn't find opened application window for "firefox", it automatically rejects the request. Using an empty id fixes this problem. We still use the original app id if it's valid, because it's possible that app info didn't resolve correctly in case the requesting app is freshly installed and there is a race.
- Loading branch information