Comment 1 for bug 1706500

Revision history for this message
Robert Ancell (robert-ancell) wrote : Re: Update snap store name "Ubuntu Store"

The source field was changed by GNOME Software upstream to infer the source based on the icon/screenshot metadata (which is where dashboard.snapcraft.io comes from). The reason for this change was on other distros the source may not have been the Ubuntu store.

To fix this correctly we probably need more information from snapd. The snapd system information has a 'store' field [1] which we can use to decide if this is not the default store. If it's blank is signifies the "default store", but this is not 100% clear this can be assumed that it's the Ubuntu store. We also need to clarify if this is a code or a user-visible string.

It needs to be investigated if installed snaps can tell where they came from. This might be possible by checking assertions. Otherwise we can only say a search result is from a given store, but an installed snap could be from anywhere (e.g. sideloaded).

While this bug seems simple at first glance, some thought needs to be put into it.

[1] https://github.com/snapcore/snapd/wiki/REST-API#get-v2system-info