This is for a python based command line app that is built using pyinstalled and then packaged as a strict snap.
What is a safe and reasonable way for the app to query about its snap context, for example, does it run under snap? (we use also other packagers), is the raw-usb interface connected? and so on.