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



commit 3b0fab992270e463deee9fc2f435de7678658ec4
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]