save files

Michael Hall mhall119 at ubuntu.com
Fri Nov 11 13:03:45 UTC 2016


On 11/11/2016 05:12 AM, Василий Алексеенко wrote:
> How to save user files between the update snap package?
> Path $SNAP_USER_DATA
> 

Hi Vasilisc,

It's not clear what you're asking here. Files in $SNAP_USER_DATA are
versioned, which means an updated snap will get a copy of the previous
version's files. If you want to keep using the same files, instead of a
copy of them, then you can use $SNAP_USER_COMMON instead.

You can learn more about these environment variables here:
http://snapcraft.io/docs/reference/env


Michael Hall
mhall119 at ubuntu.com




More information about the Snapcraft mailing list