I have locally built snap (lxd) using snapcraft. I can install it fine using the follwing command:
sudo snap install lxd_4.0.2_amd64.snap --devmode --dangerous
If I understand correctly,
--devmode means that the application is not confined and is
not refreshed. If I omit the option, I get all sorts of permission errors.
How do official snaps from the store differ in that regard? E.g. how does
lxd from the snap
store deal with confinement, so that it can work correctly?
I ask because it would be nice to omit the
--devmode and handle confinement issues
correctly (i.e. setting the right permissions, etc.) instead of disabling it altogether.