The confinement rules prohibit reading and writing files in /usr
so you cannot access anything there. You need to ship everything your snap needs inside the snap itself, and access from there. The best thing would be to get your app to read from $SNAP
, but you can use layouts to massage a troublesome app’s view of the world if you definitely cannot adjust it to read from $SNAP
.