Friday, April 22, 2016

snap install --devmode

This is very short post about a particular feature of snappy that many people don't know about.

You can install a snap using "snap install --devmode ...".  The presence of --devmode switches confinement, for that snap only, from enforcing mode where the application is rejected from accessing certain things (or killed, depending on access pattern) to complain mode where the application is allowed to do anything, as the local user could, but appropriate messages are logged to let developers know that something would not normally work.

Development mode is aimed at snap developers to let them understand what their application (or application toolkit) is doing under the hood. We are working on a separate tool that works along --devmode applications, analysing log files and offering suggestions as to which interfaces to use.