[gnome-builder] flatpak: initialize client when loading plugin



commit 4da912bc8374e20d7fc40bb343f90b2d9ba0d0a9
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 18 18:42:18 2021 -0800

    flatpak: initialize client when loading plugin
    
    This helps ensure we've already updated summary files for the private
    Flatpak repository by time a project is opened.

 src/plugins/flatpak/flatpak-plugin.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/flatpak/flatpak-plugin.c b/src/plugins/flatpak/flatpak-plugin.c
index 91f06d28e..094e23552 100644
--- a/src/plugins/flatpak/flatpak-plugin.c
+++ b/src/plugins/flatpak/flatpak-plugin.c
@@ -30,6 +30,7 @@
 #include "gbp-flatpak-aux.h"
 #include "gbp-flatpak-build-system-discovery.h"
 #include "gbp-flatpak-build-target-provider.h"
+#include "gbp-flatpak-client.h"
 #include "gbp-flatpak-config-provider.h"
 #include "gbp-flatpak-dependency-updater.h"
 #include "gbp-flatpak-pipeline-addin.h"
@@ -60,4 +61,7 @@ _gbp_flatpak_register_types (PeasObjectModule *module)
                                               GBP_TYPE_FLATPAK_PIPELINE_ADDIN);
 
   gbp_flatpak_aux_init ();
+
+  /* Load the flatpak client early */
+  (void)gbp_flatpak_client_get_default ();
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]