Is there a method for a Snap app to introspect its own permissions?
I’ve built an app that requires the raw-usb permission to flash firmware on microcontrollers. Without it, the app does not work and I would like to inform the user with a pop-up that they have to add the permissions. Is there a way that allows the app to explicitly check which permissions have been granted? I have not found any information in the meta folder of the snap app.
For the password-manager-service permission I currently check it via an error thrown by the password library.