Installing runtime dependency through libflatpak
Alexander Larsson
alexl at redhat.com
Thu Mar 8 10:35:29 UTC 2018
This is (unfortunately) currently a bit manual.
flatpak_installation_list_remote_related_refs_sync() will give you the
list of the "related" refs for the app, then you can call
atpak_related_ref_should_download() to see what the recommended
default option for auto-downloading that ref with the app is, and
flatpak_related_ref_get_subpaths() will get you the subpaths of that
ref that should be installed (ie. partial installs for locales).
This handles things like locale info and app extensions. Additionally
you need to install the runtime and *its* related refs.
You need to get the metadata file for the app (using e.g.
flatpak_installation_fetch_remote_metadata_sync) to find this. Its a
simple key/value file.
However, the plan is to take the current code in the CLI to do these
kinds of transactional work and move it to libflatpak, so that
everyone doesn't have to copy this code.
On Wed, Mar 7, 2018 at 2:29 AM, Nicholas Bishop
<nicholasbishop at gmail.com> wrote:
> Hi,
>
> When installing an application through the flatpak library, what's the
> recommended way to install the runtime dependency (if not already
> installed)?
>
> -Nicholas
>
> _______________________________________________
> Flatpak mailing list
> Flatpak at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/flatpak
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
More information about the Flatpak
mailing list