Question on where snaps are stored

Didier Roche didrocks at ubuntu.com
Mon Oct 10 06:05:53 UTC 2016


Le 10/10/2016 à 03:20, Chris a écrit :
> On Mon, 2016-10-10 at 10:59 +1000, Jacob Zimmermann wrote:
>> The snap packages themselves are simply copied into
>> /var/lib/snapd/snaps
>> and then mounted into /snap (via /dev/loop).
>>
>> The folders under ~/snap are for configuration files and per-package
>> home directories (for those packages that don't have a home plug and
>> therefore don't access your real home directory). If a given user
>> never
>> launched a certain snapped app, that user wouldn't have the
>> corresponding subdir under ~/snap.
>>
>> Or at least I believe that's how it works, please someone correct me
>> if
>> I'm wrong.
>>
> For instance I just reinstalled this snap - https://uappexplorer.com/ap
> p/hello-snap.muhammad and you're correct, the folder in ~/snap is not
> present until I run 'hello-world'. You're absolutely correct Jacob.

You are right Jacob, this is the intended behavior (only create the data
dir for a particular user for a version of a snap only the first time
this snap application/service is started)

Cheers,
Didier
>
>> On 10/10/16 10:43, Chris wrote:
>>> Firstly I'm just a user of snaps, not a developer however I like
>>> the
>>> way everything is packaged together and their ease of installation,
>>> updating and, if necessary removal. My question is in my ~/snap
>>> folder
>>> certain of the snaps I've installed have subfolders, however some
>>> don't. I was under the impression that all installed snaps are put
>>> there. For example:
>>>
>>> /dev/loop1       97M   97M     0 100% /snap/wallpaperdownloader/4
>>> drwxrwxr-x 3 chris chris 4096 Oct  8 11:36 wallpaperdownloader
>>> /dev/loop2       11M   11M     0 100% /snap/speed-test/2
>>> drwxr-xr-x 4 chris chris 4096 Oct  9 17:32 speed-test
>>> /dev/loop3       62M   62M     0 100% /snap/pencilsheep/5
>>> drwxr-xr-x 4 chris chris 4096 Oct  6 19:09 pencilsheep
>>> /dev/loop4      640K  640K     0 100% /snap/hello-snap/1
>>> (There is no folder for this under ~/snap)
>>> /dev/loop5      107M  107M     0 100% /snap/blender-tpaw/2
>>> drwxr-xr-x 4 chris chris 4096 Oct  6 20:12 blender-tpaw
>>>
>>> I've noticed other snaps I install do the same. They show up in the
>>> /dev/loop* however not as a folder in my ~/snap. Am I missing
>>> something
>>> on how they install?
>>>
>>> Chris
>>>





More information about the Snapcraft mailing list