Disable gnome-software service on live session

Bug #1758920 reported by Jean-Baptiste Lallement on 2018-03-26
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Medium
Jean-Baptiste Lallement
Bionic
Medium
Jean-Baptiste Lallement

Bug Description

gnome-software updates its cache when the session service starts which uses lot a precious resources when ran from a live session fully running in memory.

gnome-software service should not start during live session to lighten the load on the device.

Ref for Fedora: https://pagure.io/fedora-kickstarts/pull-request/368#request_diff

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: casper (not installed)
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Mar 26 15:46:48 2018
InstallationDate: Installed on 2014-07-15 (1350 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140520)
SourcePackage: casper
UpgradeStatus: Upgraded to bionic on 2018-03-24 (1 days ago)

Jean-Baptiste Lallement (jibel) wrote :
Changed in casper (Ubuntu):
assignee: nobody → Jean-Baptiste Lallement (jibel)
importance: Undecided → Medium
status: New → Triaged
description: updated
Changed in casper (Ubuntu Bionic):
status: Triaged → In Progress
Jean-Baptiste Lallement (jibel) wrote :

This patch disables gnome-software shell search provider to not activate the service in the live session and disable automatically downloading updates.

Changed in casper (Ubuntu Bionic):
status: In Progress → Triaged
tags: added: id-5ab94ddf405f744cb90495dc

The attachment "casper_1.392.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Jeremy Bicha (jbicha) wrote :

jibel, I think we should disable /etc/xdg/autostart/gnome-software-service.desktop also.

Jean-Baptiste Lallement (jibel) wrote :

It was already done in 31disable_update_notifier but the service was still activated by dbus because it is a shell search provider. That's also why I added the patch to 31disable_update_notifier to have all the code to disable the service at the same place.

Jeremy Bicha (jbicha) wrote :

Oh I see, thanks!

Iain Lane (laney) wrote :

I've uploaded with some changes. Jean-Baptiste said he's going to be out this evening, so what I'm going to do is set block-proposed and ask him to review. If it seems okay, please remove the tag and it should migrate. Otherwise we can follow-up with fixes next week.

tags: added: block-proposed
Iain Lane (laney) wrote :
Jean-Baptiste Lallement (jibel) wrote :

Tested on Ubuntu Desktop Live session and it works as expected. The service doesn't run on boot, and only starts when gnome-software is manually started for the first time.

tags: removed: block-proposed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package casper - 1.392

---------------
casper (1.392) bionic; urgency=medium

  [ Jean-Baptiste Lallement ]
  * scripts/casper-bottom/31disable_update_notifier:
    - Do not activate gnome-software session service in the live session by
      disabling gnome-software shell search provider (LP: #1758920)

  [ Iain Lane ]
  * scripts/casper-bottom/55disable_snap_refresh: Add RemainAfterExit=yes, so
    that we only run once.
  * Move the gnome-software GSettings override to
    scripts/casper-bottom/22desktop_settings and add it to the pre-existing
    casper override - we need to call glib-compile-schemas to get it to work
    and this script already does that.
  * Check if gnome-software's search provider is there before writing to it,
    so that we don't do anything if it isn't.

 -- Jean-Baptiste Lallement <email address hidden> Thu, 29 Mar 2018 16:45:29 +0100

Changed in casper (Ubuntu Bionic):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers