GNOME Bugzilla – Bug 780261
Pkcon used for installing flatpak-builder fails since is not installed by default in some distros
Last modified: 2018-01-11 10:22:27 UTC
In this case, Ubuntu 16.04.2. I think they should have it installed by default, since there is no other tool to be able to guess packages right? Anyway, if Builder uses it maybe it should depend on it when Flatpak build is enabled?
fwiw it's not a big problem for regular contribution (in case that matters). We will say to install it beforehand together with flatpak.
Is pkcon installed by default on Ubuntu GNOME?
I think interacting with a frontend (pkcon) to get anything installed sounds like the wrong approach. It would likely be cleaner to use packagekit-glib or the dbus directly - this offers you after all a programmable interface, unlike any cli tool
(In reply to Christian Hergert from comment #2) > Is pkcon installed by default on Ubuntu GNOME? From Jeremy Bicha: No, only since 16.10
I mean yes, but only since 16.10 :)
Ubuntu (Unity) and Ubuntu GNOME both install libpackagekit-glib by default in 16.04 LTS. Note that 16.04 LTS uses packagekit 0.8. (16.10 uses packagekit 1.0). In Debian/Ubuntu, pkcon is in the 'packagekit-tools' binary package which is why it wasn't installed previously.
On systems where Builder is installed form packages, we can simply depend on pkcon. But for Flatpak, we're running inside the sandbox so we can't just use the libraries directly (afaik). We would have to use the DBus interface. And before we used pkcon, that is exactly what I was doing. However, the DBus API doesn't properly execute the operation (it would only update the page in Software and tell the user additional software was required) nor does it provide progress of the operation.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/199.