snap runtime error: GDBus.Error:org.freedesktop.portal.Error.NotAllowed
Closed this issue · 3 comments
hellsworth commented
The gnome-calendar snap in candidate (Rev 182) will not run.
$ snap run gnome-calendar
Failed to register: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.467" (uid=1000 pid=23709 comm="/snap/gnome-calendar/182/usr/bin/gnome-calendar " label="snap.gnome-calendar.gnome-calendar (enforce)") interface="org.gtk.Actions" member="DescribeAll" error name="(unset)" requested_reply="0" destination="org.gnome.Calendar" (uid=1000 pid=1664 comm="/usr/bin/gnome-calendar --gapplication-service " label="unconfined")
(gnome-calendar:23709): GLib-GIO-WARNING **: 10:18:32.415: GDBus.Error:org.freedesktop.portal.Error.NotAllowed: This call is not available inside the sandbox
sergio-costas commented
Do you have all the connections set?
hellsworth commented
Only contacts-service
and mount-observe
were not connected. Even after connecting them, I still have the same runtime error. Here are my connections now:
$ snap connections gnome-calendar
Interface Plug Slot Notes
accounts-service gnome-calendar:accounts-service :accounts-service -
calendar-service gnome-calendar:calendar-service :calendar-service -
contacts-service gnome-calendar:contacts-service :contacts-service manual
content[gnome-42-2204] gnome-calendar:gnome-42-2204 gnome-42-2204:gnome-42-2204 -
content[gtk-3-themes] gnome-calendar:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] gnome-calendar:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] gnome-calendar:sound-themes gtk-common-themes:sound-themes -
dbus - gnome-calendar:gnome-calendar -
desktop gnome-calendar:desktop :desktop -
desktop-legacy gnome-calendar:desktop-legacy :desktop-legacy -
gsettings gnome-calendar:gsettings :gsettings -
mount-observe gnome-calendar:mount-observe :mount-observe manual
opengl gnome-calendar:opengl :opengl -
wayland gnome-calendar:wayland :wayland -
x11 gnome-calendar:x11 :x11 -
hellsworth commented
It turns out that it was failing to run because the deb package was running in the background. If I stop that process, then gnome-calendar runs.
$ sudo pkill gnome-calendar
$ snap run gnome-calendar