I’m trying to change the confinement of my app to strict.
However, I haven’t found a Interface so far, which allows me to access the /dev/video0 which is used by OpenCV to acess the camera.
this is not user friendly at all, (use case: user installs App over software center and then has to connect the camera via terminal?!?)
Nevertheless I tried to connect the camera, but it seems like there are some more bugs in the snapcraft, before connecting the camera, Apparmor tells me that I cannot access
/dev/video0
now it after connecing to the camera, it says that I cannot access
I’m not on the snapd release team. As of right now, that PR is not merged. I was hoping it would be available in 2.27, which is the next version. @mvo, can you comment on when 2.27 will be released?
Do you have any plans to provide a gui foe users or api for developers (trigger popup like when sudo rights are needed), to change this? As far as I understood, there are plans to integrate the connection to the software store, but I’ve nod heard so far about a terminal free solution for after the installation.
Both of those things are planned. The GUI will be in gnome-software itself, so any user will be able to tune without the terminal. This work is already in progress. In addition to that, there are also plans to have the snap itself being able to tell the user that the interface is disconnected and needs connecting. That will be done inside the snap by calling some subcommand in snapctl. This part is unscheduled right now.