If my program want's to write into /home/user/.local/myapp/somefile, do I have to put home plug in a snapcraft.yaml file or will it write there anyway?
It's not a classic snap, so will the user have to connect after installing the snap?
The home plug won't allow access to dotfiles/directories in the host home directory. However it will be able to access the confined home directory - typically /home/$USER/snap/$SNAP/current
.
/home/<user>/snap/<snapname>/current
.