Beginner to snapcraft. I have a project which has two applications. The first application invokes the second one and keeps it alive. While snapping these, I have snapped the two application within one snap as they have many common files and libraries required.
- I don’t understand how I can invoke the second app which is now inside the snap from the first app. Like what call can I use ?? The applications are written in C and before I used system() to invoke the second app. something like system(hello_world), I tried system(/snap/bin/./hello_world) , but this works only in devmode. Once it is in stable mode, I get permission denied script. is there any plugs slot kinda thing I can add? I couldn’t find any definitive documentation regarding that.
- My app uses ifconfig to read network info. It works in devmode, but again in stable mode, I get permission denied. When I check the dmesg, I can see that I’m getting apparmour denial. I have added every possible interface I could find wrt network in plugs.