gnome-software does not show the right version of a snap when open with xdg-open

Bug #1745355 reported by Jean-Baptiste Lallement
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Fix Released
Low
Robert Ancell

Bug Description

With spotify installed on my system as a snap, I've the following versions:
tracking: stable
installed: 1.0.70.399.g5ffabd56-26 (5) 167MB -
refreshed: 2017-12-20 16:00:00 +0100 CET
channels:
  stable: 1.0.70.399.g5ffabd56-26 (5) 167MB -
  candidate: 1.0.72.117.g6bd7cc73-35 (6) 170MB -
  beta: ↑
  edge: 1.0.72.117.g6bd7cc73-35 (6) 170MB -

If I start gnome-software, search for spotify and go to the details page, the version is 1.0.70.399.g5ffabd56-26 (which is expected)

But if I open gnome-software with xdg-open ( xdg-open snap://spotify ) which is the method used from spotify.com, the version of the snap displayed is 1.0.72.117.g6bd7cc73-35 (cf screenshot)

It should be the version from stable.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-software 3.26.3-2ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-25.29-generic 4.13.13
Uname: Linux 4.13.0-25-generic x86_64
ApportVersion: 2.20.8-0ubuntu6
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Jan 25 12:01:01 2018
InstallationDate: Installed on 2013-09-03 (1604 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
InstalledPlugins:
 gnome-software-plugin-flatpak 3.26.3-2ubuntu1
 gnome-software-plugin-limba N/A
 gnome-software-plugin-snap 3.26.3-2ubuntu1
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
Changed in gnome-software (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Same here with the libreoffice snap when it's not installed. Running "xdg-open snap://libreoffice" shows in the details:

  Channel: stable
  Version: 6.0.2.1

but the version in the stable channel currently is 6.0.1.1, 6.0.2.1 is in the candidate channel (see screenshot).

Revision history for this message
Julian Andres Klode (juliank) wrote :

It generally always shows edge for me for uninstalled snaps, and the right version for installed ones.

Revision history for this message
hackel (hackel) wrote :

Interestingly, for a snap installed with --edge, gnome-software is showing the stable version installed. This integration is clearly rather broken.

Changed in gnome-software (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
Revision history for this message
Robert Ancell (robert-ancell) wrote :

This might have been fixed in bug 1767445 - can you check?

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

This is indeed fixed in Cosmic. Thanks.

Changed in gnome-software (Ubuntu):
status: Confirmed → Fix Released
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.