Error trying to access to dbus

Sergio Cazzolato sergio.cazzolato at canonical.com
Tue Dec 13 18:32:42 UTC 2016


I am trying to access to dbus from a python script in my snap and I am
getting the error dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.AccessDenied: Failed to connect to socket
/var/run/dbus/system_bus_socket: Permission denied, it happens when I do
bus = dbus.SystemBus(mainloop=DBusGMainLoop())

Any idea how to fix it?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20161213/38926336/attachment.html>


More information about the Snapcraft mailing list