Skip to content

Add org.gnome.Software.OfflineUpdates D-Bus API

This is to help gnome-shell#7784

While the gnome-shell bug talks about dnf5, this can be used by other means and maybe some distros could add their own plugin to have the question about offline updates integrated in their reboot/shutdown dialog.

It currently touches PackageKit only (which can cover dnf5 one day), but I thought it'll be usable also for the rpm-ostree. I did not find an API for the same functionality, thus I'll ask the rpm-ostree developers how to do this.

The D-Bus API is very simple, it covers what the gnome-shell needs:

  1. is anything scheduled?
  2. cancel the update - for cases when the checkbox to install the update is unchecked
  3. set the finish action - shutdown or reboot after the offline update is finished; the gnome-shell can set it to the one chosen by the user.

I did not distinguish between system upgrades and package updates, even the gnome-shell can do it. I think it will be no harm to call the upgrade as an update in that dialog.

Merge request reports

Loading