Running snaps that are refreshed lose their app running indicator in docks

Bug #1888285 reported by Andrew Hayzen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

What Happened:
1) Started running vscode snap
2) Notice that in the ubuntu dock/gnome dash-to-dock that the VSCode icon appears with running indicator and that clicking on the icon switches you to the window
3) Wait for the vscode snap to be automatically refreshed
4) Notice that now the running indicator is not shown and that clicking on the icon launches a new instance (it doesn't switch to the existing window)

Note: I had vscode open in a separate workspace and didn't even know there was an instance running there for a while, as the dock icon had no running indicator and clicking on the icon launched new instances !

What I expected to happen:
As with other package managers when the package is updated the app icon in the dock should keep it's running indicator correctly. Also selecting the icon should switch to the running window rather than launching a new window. (the .desktop files seem to be in a stable folder and not versioned, eg /var/lib/snapd/desktop/applications/code_code.desktop, so I wonder what breaks this).

Versions:
$ lsb_release -rd
Description: Debian GNU/Linux 10 (buster)
Release: 10
$ snap version
snap 2.45.2
snapd 2.45.2
series 16
debian 10
kernel 4.19.0-9-amd64
$ apt policy snapd gnome-shell gnome-shell-extension-dashtodock
snapd:
  Installed: 2.37.4-1+b1
  Candidate: 2.37.4-1+b1
  Version table:
 *** 2.37.4-1+b1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
gnome-shell:
  Installed: 3.30.2-11~deb10u1
  Candidate: 3.30.2-11~deb10u1
  Version table:
 *** 3.30.2-11~deb10u1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status
gnome-shell-extension-dashtodock:
  Installed: 65-1
  Candidate: 65-1
  Version table:
 *** 65-1 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status

Note that I am on an old gnome-shell, dash to dock, and snapd deb package - so if this has been fixed since please point to the 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.