Question on where snaps are stored

Chris cpollock at embarqmail.com
Mon Oct 10 01:20:17 UTC 2016


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.

> 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
> > 
> 
-- 
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
20:12:44 up 12 days, 12:36, 1 user, load average: 0.20, 0.35, 0.22
Ubuntu 16.04.1 LTS, kernel 4.4.0-38-generic #57-Ubuntu SMP Tue Sep 6 15:42:33 UTC 2016





More information about the Snapcraft mailing list