Bug 2035106 - Cheese Flatpak is missing camera permissions
Summary: Cheese Flatpak is missing camera permissions
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: cheese
Version: 35
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-12-22 22:25 UTC by ccouzens
Modified: 2022-06-21 16:23 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description ccouzens 2021-12-22 22:25:36 UTC
Description of problem:

Cheese as installed through Fedora's official Flatpak repo (https://registry.fedoraproject.org/) is unable to find the attached cameras.

Version-Release number of selected component (if applicable):

flatpak info org.gnome.Cheese

Cheese - Take photos and videos with your webcam, with fun graphical effects

          ID: org.gnome.Cheese
         Ref: app/org.gnome.Cheese/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 3.38.0
     License: GPL-2.0+
      Origin: fedora
Installation: system
   Installed: 17.1 MB
     Runtime: org.fedoraproject.Platform/x86_64/f35
         Sdk: org.fedoraproject.Sdk/x86_64/f35

      Commit: a8aee28b51dc608dbe561a5d98d3d22f5750c0bbdb908529cc9cf4238a048e5f
     Subject: Export org.gnome.Cheese
        Date: 2021-11-03 10:05:35 +0000
      Alt-id: 2958e4c952c5de34df7e626d4e9c98a79bfd3b3fab6358c6e546bb172faeaed7

How reproducible:

Every time I launch this installation of cheese. Installations through `dnf` and the 3rd party flathub are both fine.

Steps to Reproduce:
1. flatpak remote-add --if-not-exists fedora oci+https://registry.fedoraproject.org
2. flatpak install fedora org.gnome.cheese
3. flatpak run org.gnome.Cheese

Actual results:

Message saying "No device found". No devices listed in the preferences.

Expected results:

Preview image in the main window. Camera devices listed in the preferences. 

Additional info:

Comment 1 Stephane Travostino 2022-06-20 14:35:34 UTC
Still an issue as of today. The version from Flathub works perfectly fine.

Comment 2 Timothée Ravier 2022-06-20 15:53:55 UTC
This has also been discussed in https://discussion.fedoraproject.org/t/debugging-webcam-microphone-in-cheese-flatpak/34189

If the one from Flathub works and the one from Fedora does not then someone should compare the permissions in the manifests:
- https://github.com/flathub/org.gnome.Cheese/blob/master/org.gnome.Cheese.yml
- https://src.fedoraproject.org/flatpaks/cheese

Comment 3 ccouzens 2022-06-20 22:08:47 UTC
I believe the permissions are the same:


flatpak info --show-permissions org.gnome.Cheese

flatpak info --show-permissions org.gnome.Cheese

Assuming I'm reading the manifest correctly they are also the same there:

I confirm the flathub version still shows the webcam feed, and the fedora-flatpak version still shows the "No device found" message.

I can get bash inside the cheese flatpak. If you tell me what to look for inside the container I can report back the difference.

Comment 4 Timothée Ravier 2022-06-21 16:23:26 UTC
I don't really know how Cheese works but removing access from a working Flatpak until it breaks will get you started.
Maybe the Runtime permissions are different between the Fedora Platform one and the Flatpak GNOME one?

Note You need to log in before you can comment on or make changes to this bug.