How to use snapd-control interface

I didn’t find the documents for that.

I created a snap, and connected snapd-control interface but I cannot talk to the snapd unix socket as that says permission denied, same goes for when I try to use the snap cli.

My new project allows to remotely install/remove/update/list snaps on a system.

1 Like

There shouldn’t be any requirement other than connecting the interface. The unix socket should definitely be available under /run/snapd.socket if the interface is properly connected, next to /run/snapd-snap.socket which is always available for snapctl to talk to snapd.

Here is our test case ensuring snapd-control works. Does it help?

1 Like

Thanks, I was able to talk to the snapd daemon in a confined snap. Cheers!

2 Likes