Writing in /var/games/foo


I am snapping an old ncurses games that tries to save it data at /var/games/foo.score but since the filesystem is write only it defaults to HOME. I change HOME to SNAP_USER_COMMON folder and it works well… but is it possible to write to /var/foo inside a snap?

I think you need this: https://snapcraft.io/docs/snap-layouts

I totally forgot about layout… And I already used that in other snap… Thanks @ppd