@agx
Copy link

agx commented Jul 16, 2021

I'm using AsPool like

  self->as_pool = as_pool_new ();
  as_pool_set_flags (self->as_pool, AS_POOL_FLAG_READ_METAINFO);

  as_pool_load_async (self->as_pool, self->cancel,
                      on_as_pool_load_ready,
                      data);

so only bother about metainfo of installed applicaticions (/usr/share/metainfo, etc) however i need to refresh the pool when new metainfo gets added there and for that as_pool_add_metadata_locations () would be nice so i can set up appropriate file monitors.

The alternative would be to explicitly add all metainfo locations but that looks odd given AsPools built-in knowledge. But maybe i'm using it incorrectly?

Or would adding file watches via g_file_monitor_directory in AsPool itself be an option so caches stay up to date automatically for these?