Eight questions on what
you have just read. Nothing is recorded
and nothing is issued for it: it is here so you find out which of the seven
lessons to read again, while you still have them open in the rail.
1. Your photo editor opens files a person picks, and saves settings of its own. What does the manifest ask for? xdg-pictures read-write, and home/.config/fotoritocco read-write host, read-only, so it can open a photo from anywhere home, read-write
2. Why write xdg-pictures rather than home/Pictures? It is read-only and home/Pictures is not They are the same thing, and the short one is tidier It resolves against whatever that person's desktop has the pictures directory set to
3. A .desktop file in your image sets Exec three times, spelled with different whitespace. What does cpak rewrite? All three The first one, since a launcher reads top to bottom None, and the export is refused as ambiguous
4. A line in the file reads Exec[de]=... . Is it rewritten? Only when the manifest declares a German locale No, it is a different key from the one the launcher runs Yes, it contains Exec and it would run
5. You are not sure a directory is needed. What goes in the manifest you publish? Ask for it. Removing it later breaks people who came to rely on it Leave it out, and add it when somebody reports what it broke Ask for home instead, so the question stops coming up
6. A vendor lets users download its editor but does not allow you to redistribute the binary. Where does the payload belong? In the OCI image, because cpak does not publish a traditional package In a runtime source pinned by HTTPS URL, size and SHA-256 In the repository release as an untracked attachment
7. An editor works without Go, but can discover a Go SDK when the user enables one. Which relationship fits? A required nested dependency A runtime source in the editor manifest An optional addon provider
8. Why run cpak-clean-junk in the same image layer as apt-get install? A later cleanup layer cannot remove bytes already stored in an earlier OCI layer It compiles the application translation catalogs cpak refuses images with more than one RUN instruction