Search broken after snapd is restarted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-software (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Test Case:
1. Start gnome-software and close it
2. Make sure gnome-software is still running in the background
$ pgrep -l gnome-software
3. Restart snapd
$ sudo service snapd restart
4. Open gnome-software
5. Click on 'Search'
6. Search 'gedit'
Expected result
There should be at least 2 records for gedit as a deb and as a snap
Actual result
There is no result and after a while only debs are shown in the list
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-software 3.26.0-0ubuntu1
ProcVersionSign
Uname: Linux 4.12.0-13-generic x86_64
ApportVersion: 2.20.7-0ubuntu1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep 19 12:14:03 2017
InstallationDate: Installed on 2013-09-03 (1476 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
InstalledPlugins:
gnome-
gnome-
gnome-
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=fr_FR.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-software
UpgradeStatus: No upgrade log present (probably fresh install)
commit 3e8a4ed577b48c4 85039d2b0d00f29 36da92a00d
Author: Robert Ancell <email address hidden>
Date: Thu Sep 21 12:55:12 2017 +1200
snap: Don't use a common SnapdClient
If the client fails (e.g. snapd is restarted) this means that snapd operations
don't restart. Since GNOME Software runs as a background process this is
unrecoverable.
I could have checked for connection failures and reconnected when these occurred
but this seems simpler. The cost of a SnapdClient is low (basically a single
socket connection).
This reverts the change in 696d076.