Installed snaps show twice in GNOME Software

Bug #1700994 reported by Robert Ancell on 2017-06-28
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
appstream-glib (Ubuntu)
Status tracked in Artful
Xenial
High
Robert Ancell
Zesty
High
Robert Ancell
Artful
High
Robert Ancell
gnome-software (Ubuntu)
Status tracked in Artful
Xenial
High
Unassigned
Zesty
High
Unassigned
Artful
High
Unassigned

Bug Description

[Impact]
Installed snaps show twice in GNOME Software. The solution is to not scan the installed .desktop files - there is sufficient information provided by snapd.

[Test Case]
1. Open GNOME Software
2. Install a snap (e.g. ohmygiraffe)
3. Switched to "Installed" tab

Expected result:
ohmygiraffe is shown once in the installed list.

Observed result:
ohmygiraffe is shown twice. One entry has data from the snap metadata, the other from the installed .desktop file.

[Regression Potential]
There is some risk of breaking other appstream behaviour. The risk is low because we only filter out the snapd specific directory that contains this data.

Robert Ancell (robert-ancell) wrote :

Note the gnome-sofware task is only open to make this more visible, the solution is entirely in appstream-glib.

Changed in gnome-software (Ubuntu):
status: New → In Progress
Changed in appstream-glib (Ubuntu):
status: New → In Progress
assignee: nobody → Robert Ancell (robert-ancell)
Changed in gnome-software (Ubuntu):
importance: Undecided → High
Changed in appstream-glib (Ubuntu):
importance: Undecided → High
Changed in gnome-software (Ubuntu Zesty):
importance: Undecided → High
Changed in gnome-software (Ubuntu Xenial):
importance: Undecided → High
Changed in appstream-glib (Ubuntu Zesty):
importance: Undecided → High
Changed in appstream-glib (Ubuntu Xenial):
importance: Undecided → High
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appstream-glib - 0.6.13-1ubuntu1

---------------
appstream-glib (0.6.13-1ubuntu1) artful; urgency=medium

  * debian/patches/0001-Skip-loading-desktop-data-from-Snap-directory.patch:
    - Don't load .desktop files provided by snapd - we already have this information
      from snapd. (LP: #1700994)

 -- Robert Ancell <email address hidden> Wed, 28 Jun 2017 15:21:52 +0100

Changed in appstream-glib (Ubuntu Artful):
status: In Progress → Fix Released
Changed in appstream-glib (Ubuntu Zesty):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in appstream-glib (Ubuntu Xenial):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in appstream-glib (Ubuntu Zesty):
status: New → Fix Committed
Changed in appstream-glib (Ubuntu Xenial):
status: New → Fix Committed
Changed in gnome-software (Ubuntu Artful):
status: In Progress → Fix Released
Changed in gnome-software (Ubuntu Zesty):
status: New → In Progress
Changed in gnome-software (Ubuntu Xenial):
status: New → In Progress

Hello Robert, or anyone else affected,

Accepted appstream-glib into zesty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/appstream-glib/0.6.9-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-zesty to verification-done-zesty. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-zesty. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed verification-needed-zesty
tags: added: verification-needed-xenial
Brian Murray (brian-murray) wrote :

Hello Robert, or anyone else affected,

Accepted appstream-glib into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/appstream-glib/0.5.13-1ubuntu5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Xenial:
I have reproduced the problem with appstream-glib 0.5.13-1ubuntu4 in xenial-updates and have verified that the version of appstream-glib 0.5.13-1ubuntu5 in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done-xenial
removed: verification-needed-xenial
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package appstream-glib - 0.5.13-1ubuntu5

---------------
appstream-glib (0.5.13-1ubuntu5) xenial; urgency=medium

  * debian/patches/0001-Skip-loading-desktop-data-from-Snap-directory.patch:
    - Don't load .desktop files provided by snapd - we already have this information
      from snapd. (LP: #1700994)

 -- Robert Ancell <email address hidden> Fri, 07 Jul 2017 13:49:05 +1200

Changed in appstream-glib (Ubuntu Xenial):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for appstream-glib has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers