Testing the snap from Linux

By this step you should have a .snap of your app that you wish to test from Linux. As before, the Linux environment must have support for snaps enabled.

Install the snap you created earlier:

sudo snap install --dangerous mysnap_latest_amd64.snap

List your installed snaps to confirm that it is installed:

snap list

You can now run your application from this shell environment. Type its name and hit return.

Debugging

If your application fails to launch or an error occurs, consult the contents of /var/log/syslog for a possible explanation.

If no explanation can be found, ask for assistance on the Snapcraft Forum. Be sure to include any relevant details, such as the contents of log files and any error messages printed on the terminal.

Next steps

Congratulations, you have a working snap. Continue on to learn how to apply the right security model to your application and ready it for publication in the Snap Store.

Since this page comes before “applying the right security model”, this command should also include --devmode, otherwise the app will fail because of the sandbox.