Comment 9 for bug 1575593

Revision history for this message
Tyler Johnson (tejohnso) wrote :

I followed Colin's advice above:

"So whatever bit of snap puts /snap/bin/foo in place should simply also put /snap/man/man1/foo.1 in place, or similar."

I set up my snapcraft yaml to prime:
bin/mysnap
man/man1/mysnap.1

This resulted in the following on the filesystem after installing mysnap:

/snap/
  bin/
    mysnap
  mysnap/current/
    bin/
      mysnap
    man/
      man1/
        mysnap.1

I don't think that through snapcraft we have the ability to push something out directly to /snap/man/ so is it possible that the snap install could copy whatever is in current/man/man1 out to /snap/man/man1/ as part of the install process? Or perhaps man is being changed instead so that it will look into /snap/[snapname]/current/man/man1?