Comment 0 for bug 1470265

If you create a binary with an underscore in its name, then snappy build/install the snap. Everything works just fine. Execpt it does build its apparmor profile since a binary with an underscore in it causes aa-clickhook to fail. As it splits the binary on '_' and expects 3 split words. Any underscores will cause that assumption to fail.

Though it does say in the snappy docs thats a '_' is an unsupported character, it should still give an error while building vs producing a valid snap installing 100% and then just not working.

Example binary in package.yaml that will cause the error in a profile not being produced:
 - name: bin/document_viewer
   description: "ubuntu core app document viewer"
   start: ./bin/document_viewer
   security-template: unconfined