Installed snaps show twice in GNOME Software

Bug #1700994 reported by Robert Ancell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
appstream-glib (Ubuntu)
Fix Released
High
Robert Ancell
Xenial
Fix Released
High
Robert Ancell
Zesty
Won't Fix
High
Unassigned
Artful
Fix Released
High
Robert Ancell

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.

Revision history for this message
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
Revision history for this message
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
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

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
Revision history for this message
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!

Revision history for this message
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
Revision history for this message
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
Revision history for this message
Adam Conrad (adconrad) wrote : Update 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.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU verification for Zesty:
I have reproduced the problem with appstream-glib 0.6.9-1 in zesty and have verified that the version of appstream-glib 0.6.9-1ubuntu2 in -proposed fixes the issue.

Marking as verification-done

tags: added: verification-done verification-done-zesty
removed: verification-needed verification-needed-zesty
Changed in appstream-glib (Ubuntu Zesty):
assignee: Robert Ancell (robert-ancell) → nobody
Revision history for this message
Mathew Hodson (mhodson) wrote :

Zesty is no longer supported.

no longer affects: gnome-software (Ubuntu Artful)
no longer affects: gnome-software (Ubuntu Zesty)
no longer affects: gnome-software (Ubuntu Xenial)
no longer affects: gnome-software (Ubuntu)
Changed in appstream-glib (Ubuntu Zesty):
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.