Hi, I have problems with a snap which previously worked without a hitch.
When I start my snapped executable modor using
/snap/volsung/current/modor
then it misses the libgomp library, as tested by investigating it with ldd. Similarly another application in my snapped package misses the libgfortran library.
However, I specifically add both libgomp1 and libgfortran4 as stage packages in my yaml file, and have my main part done after sorting the dependencies. Relevant parts:
you need to define an apps: section in your snapcraft.yaml and then call the app via “snap run <snapname>.<appname>” (if snapname and appname are the same you can use only appname) or via /snap/bin/<snapname>.<appname> (again, the same as above applies if snap and app names are identical) …
(note that snapd puts /snap/bin into your PATH, so just <snapname>.<appname> (or just appname for the above case) does usually also work)
the confinement, envrionment, namespaces and interfaces are only applied when you start a snap app this way …
My main problem was that I wanted to start my snap app using an automated cron job on system restart with no user logged in. The /snap/bin/<snapname>.<appname> did not work in this instance but my above method did.
However your start run <snapname>.<appname> appears to be working, I am currently testing it thoroughly. I was not aware of this method before; it would be great if it could be added to