I connected snapd-controll and tried subprocess.check_call("snap", "install", "installation_file", "--dangerous")
but I received Permission denied 'snap'
You can only use the snap command via the snapd REST API from within a snap… but this requires the snapd-control
interface which is normally not granted for packages in the global store… so unless you are developing for an implementation via a private IoT app store, there is no way…
This application doesn’t for the global store. I want to install local snaps from my application. Can you give me an example of how I make it with snapd REST API?
Every snap command you know has an equivalent REST call… just take a look at the doc…
Thanks! I will try that.