Sorry if it is just a a dumb thing that is going over my head, I’m very new to this whole snap packaging thing, but while trying to ‘snap’ my python application I found that when building and installing it it didn’t work at all. Just nothing when I tried running it, no output, no errors, just blank, and it kept going without exiting.
So instead I tried first using the example snap seen in here for testing and figuring out what was wrong with my
snapcraft.yaml file but I noticed that as well if I set the confinement to
classic instead of
strict it would stop working in the same manner as my application.
snapcraft.yaml file in the example link shown above looks something like this:
summary: Curl stats simple
httpstat is something
confinement: devmode # switching to classic breaks it
And I tested both my app and this example app using Ubuntu 18.04 and 16.04 (although it shouldn’t really matter as I used the
I need my application to be in a
classic confinement because it needs to read some system folders for it to work and also needs to read and write some config files located in the user’s home folder.
Seems actually that this problem is not exclusive with my app or with the example I mentioned above, since I followed the exact same steps seen here of an application (asciinema) specifically designed to be a
classic snap also doesn’t work either.
To reproduce simply:
- Init snapcraft and copy and paste exactly what is in the page above onto
- Build the snap (in my case
snapcraft cleanbuild) and wait for it to finish
- Install the freshly created
- Try running the application with
- See that nothing happens at all…
Again, I’ve tested building and installing these on several Ubuntu 18.04 and 16.04 VMs with no success with the latest non-beta snapcraft (2.42.1) and even sometimes beta (2.42.1+18.4), so any kind of help or info would be appreciated