App unable to write to ~/snap/<app>/<version> after background refresh

you should use either the env variables “$SNAP_USER_DATA” and “$SNAP_USER_COMMON” to point to the dirs or specify it like:

/home/$USER/snap/$SNAP_NAME/current/ in whatever config you use in your app … the “current” symlink is updated dynamically and transparently … if you run any daemons they need to be restarted from an upgrade hook …

along with this there is:

2 Likes