Finding the size of xdg-apps

Alexander Larsson alexl at redhat.com
Tue Dec 22 14:42:22 UTC 2015


On tis, 2015-12-22 at 11:48 +0000, Emmanuele Bassi wrote:
> Hi Richard;
> 
> On 22 December 2015 at 11:30, Richard Hughes <hughsient at gmail.com>
> wrote:
> 
> > I need to find the size of an xdg-app application or runtime. In
> > GNOME
> > Software we usually show the download size for not-yet-installed
> > applications and the size-on-disk for installed apps, and I'm
> > wondering what xdg-app can provide in this regard. We normally
> > round
> > up to the nearest Mb, so it really doesn't have to be that accurate
> > at
> > all. Thanks!
> 
> I was going to ask for the same; Endless users usually have limited
> bandwidth at their disposal, and showing the download size beforehand
> allows them to decide whether or not to update the app on their
> current connection or wait until a better time (e.g. during the
> night).

I'm not sure exactly what it does, but there is this flag:
  OSTREE_REPO_COMMIT_MODIFIER_FLAGS_GENERATE_SIZES

Maybe it can help?

Of course, for updates the story is more complex.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's a Nobel prize-winning neurotic astronaut looking for 'the Big One.' 
She's a manipulative winged pearl diver with a song in her heart and a 
spring in her step. They fight crime! 





More information about the xdg-app mailing list