#1128230 Permission to use the camera portal denied: "Permission denied"

Package:
gnome-snapshot
Source:
gnome-snapshot
Description:
Take pictures and videos from your webcam
Submitter:
Marco d'Itri
Date:
2026-08-08 01:43:02 UTC
Severity:
normal
Tags:
#1128230#5
Date:
2026-02-16 17:03:46 UTC
From:
To:
snapshot does not work, asking to "allow camera usage in Settings":

2026-02-16T16:51:37.103672Z  INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2026-02-16T16:51:37.103695Z  INFO snapshot::application::imp: Version: 49.1
2026-02-16T16:51:37.103700Z  INFO snapshot::application::imp: Datadir: /usr/share/snapshot
2026-02-16T16:51:37.662815Z  INFO ashpd::desktop::request: Creating a org.freedesktop.portal.Request /org/freedesktop/portal/desktop/request/1_896/ashpd_Slc3594xq5
2026-02-16T16:51:37.664593Z  INFO ashpd::desktop::request: Received signal 'Response' on 'org.freedesktop.portal.Request'
2026-02-16T16:51:37.664626Z  INFO ashpd::proxy: Calling method org.freedesktop.portal.Camera:OpenPipeWireRemote
2026-02-16T16:51:37.664990Z  WARN snapshot::widgets::camera: Permission to use the camera portal denied: "Permission denied"

The "Cameras Access" toggle in open gnome-control-center is enabled,
but the list of "Permitted Apps" is empty and I get these messages:

17:56:14.4014     cc-privacy-panel[19091]: WARNING: failed to get enum property 'auth-mode'
17:56:14.4514     cc-privacy-panel[19091]: WARNING: Failed fetch permissions from flatpak permission store: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
17:56:14.4515     cc-privacy-panel[19091]: WARNING: Failed fetch permissions from flatpak permission store: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for location

#1128230#10
Date:
2026-02-16 17:43:49 UTC
From:
To:
Control: tags -1 moreinfo
Hi,

did you get a popup asking for camera access? For me, I had to grant it
once, then it just worked:

2026-02-16T17:45:45.585997Z  INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2026-02-16T17:45:45.586023Z  INFO snapshot::application::imp: Version: 49.1
2026-02-16T17:45:45.586026Z  INFO snapshot::application::imp: Datadir: /usr/share/snapshot

(snapshot:28606): Adwaita-WARNING **: 18:45:45.780: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
2026-02-16T17:45:46.102790Z  INFO ashpd::desktop::request: Creating a org.freedesktop.portal.Request /org/freedesktop/portal/desktop/request/1_1131/ashpd_5acDHuwWCM
2026-02-16T17:45:46.106853Z  INFO ashpd::desktop::request: Received signal 'Response' on 'org.freedesktop.portal.Request'
2026-02-16T17:45:46.106874Z  INFO ashpd::proxy: Calling method org.freedesktop.portal.Camera:OpenPipeWireRemote

Though this is with sway; I do not have a GNOME install to test with.

best,

werdahias

#1128230#17
Date:
2026-02-16 17:55:21 UTC
From:
To:
No.

BTW: I use gnome-flashback, not gnome-shell.

#1128230#22
Date:
2026-03-21 14:55:56 UTC
From:
To:
Control: reassign -1 gnome-control-center
The log you shared above points to gnome-control-center:

https://gitlab.gnome.org/GNOME/gnome-control-center/-/blob/main/panels/privacy/camera/cc-camera-page.c?ref_type=heads#L339

This is not a gnome-snapshot bug as it request the permissions but
gnome-control-center does not grant it for some reason.
Thus reassigning.

best,

werdahias

#1128230#31
Date:
2026-08-08 01:38:13 UTC
From:
To:
I suspect that the problem is in xdg-desktop-portal-gnome, because every
time the consent popup should appear it logs instead:

xdg-desktop-portal-gnome[7963]: Failed to associate portal window with parent window

Is it broken because I am not using Wayland?

This appears to be somehow similar to
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/2158647,
so I managed to make snapshot work by manually enabling it:

   busctl --user call org.freedesktop.impl.portal.PermissionStore \
     /org/freedesktop/impl/portal/PermissionStore \
     org.freedesktop.impl.portal.PermissionStore \
     SetPermission sbssas "devices" true "camera" "org.gnome.Snapshot" 1 "yes"

And now it appears in the gnome-control-center list.