<div dir="ltr">Thanks, that's very helpful. And I look forward to more code being moved to libflatpak, that sounds great.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 8, 2018 at 5:35 AM, Alexander Larsson <span dir="ltr"><<a href="mailto:alexl@redhat.com" target="_blank">alexl@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is (unfortunately) currently a bit manual.<br>
<br>
flatpak_installation_list_<wbr>remote_related_refs_sync() will give you the<br>
list of the "related" refs for the app, then you can call<br>
atpak_related_ref_should_<wbr>download() to see what the recommended<br>
default option for auto-downloading that ref with the app is, and<br>
flatpak_related_ref_get_<wbr>subpaths() will get you the subpaths of that<br>
ref that should be installed (ie. partial installs for locales).<br>
<br>
This handles things like locale info and app extensions. Additionally<br>
you need to install the runtime and *its* related refs.<br>
You need to get the metadata file for the app (using e.g.<br>
flatpak_installation_fetch_<wbr>remote_metadata_sync) to find this. Its a<br>
simple key/value file.<br>
<br>
However, the plan is to take the current code in the CLI to do these<br>
kinds of transactional work and move it to libflatpak, so that<br>
everyone doesn't have to copy this code.<br>
<div><div class="h5"><br>
<br>
On Wed, Mar 7, 2018 at 2:29 AM, Nicholas Bishop<br>
<<a href="mailto:nicholasbishop@gmail.com">nicholasbishop@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> When installing an application through the flatpak library, what's the<br>
> recommended way to install the runtime dependency (if not already<br>
> installed)?<br>
><br>
> -Nicholas<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Flatpak mailing list<br>
> <a href="mailto:Flatpak@lists.freedesktop.org">Flatpak@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/flatpak" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/flatpak</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<wbr>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<wbr>=-=<br>
Alexander Larsson Red Hat, Inc<br>
<a href="mailto:alexl@redhat.com">alexl@redhat.com</a> <a href="mailto:alexander.larsson@gmail.com">alexander.larsson@gmail.com</a><br>
</font></span></blockquote></div><br></div>