Whats the point of those snap directories? [duplicate]

I just noticed an empty folder called snap in my user's home directory. What is this folder being used for?


Solution 1:

This directory is corresponding to $SNAP_USER_DATA for your snaps. This is where your snaps will be able to write versioned data under your user account. $HOME for your snap will be set to it as well.

You will find there:

  • ~/snaps

    • <snap name>

      • <version 1>

        data for version 1

      • <version 2>

        data for version 2

and so on…