So, Richard Hughes is working on fixing up the snap backend in GNOME Software, and he’s trying to figure out how to map all the things from the non-AppStream world of snapd to the AppStream centric model that GNOME Software presents.
One particular issue is identifying where a snap came from (from the store, if so, where in the store, or was it sideloaded).
An example blob he handed me looked like this (presumably from snapd-glib from snapd from the store):
{
"channel" : "stable",
"confinement" : "strict",
"contact" : "http://www.libreoffice.org/get-help/community-support/",
"description" : "LibreOffice is a powerful office suite – its clean interface and feature-rich tools help you unleash your creativity and enhance your productivity. LibreOffice includes several applications that make it the most powerful Free and Open Source office suite on the market: Writer (word processing), Calc (spreadsheets), Impress (presentations), Draw (vector graphics and flowcharts), Base (databases), and Math (formula editing).",
"developer" : "canonical",
"download-size" : 375025664,
"icon" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/LibreOffice-Initial-Artwork-Logo.png",
"id" : "CpUkI0qPIIBVRsjy49adNq4D6Ra72y4v",
"name" : "libreoffice",
"private" : false,
"resource" : "/v2/snaps/libreoffice",
"revision" : "18",
"screenshots" : [
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-base-02.png"
},
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-calc-01.png"
},
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-draw-01.png"
},
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-impress-01.png"
},
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-math-01.png"
},
{
"url" : "https://myapps.developer.ubuntu.com/site_media/appmedia/2016/06/lo51-writer-01.png"
}
],
"status" : "available",
"summary" : "LibreOffice is a powerful office suite including word processing and creation of spreadsheets, slideshows and databases",
"type" : "app",
"version" : "5.3.1.2"
}
How do we do this right?