[gnome-software/mwleeds/pwa-plugin: 2/3] Allow tests to pass a GDBusConnection
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/mwleeds/pwa-plugin: 2/3] Allow tests to pass a GDBusConnection
- Date: Sat, 26 Feb 2022 04:40:39 +0000 (UTC)
commit af0fde012f28677301981b96b3118d9a87f6318a
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Fri Feb 25 20:06:30 2022 -0800
Allow tests to pass a GDBusConnection
Let unit tests pass in a GDBusConnection to be used by plugins'
setup_async functions. This is required for us to be able to use
libglib-testing for the epiphany self test, because of the way
GtDBusQueue works. Everywhere except the epiphany plugin, we don't
actually use the GDBusConnection.
lib/gs-cmd.c | 1 +
lib/gs-plugin-loader.c | 9 ++--
lib/gs-plugin-loader.h | 1 +
lib/gs-plugin.h | 1 +
meson.build | 2 +-
plugins/core/gs-plugin-appstream.c | 1 +
plugins/core/gs-plugin-icons.c | 1 +
plugins/core/gs-plugin-os-release.c | 1 +
plugins/core/gs-plugin-rewrite-resource.c | 1 +
plugins/core/gs-self-test.c | 1 +
plugins/dpkg/gs-self-test.c | 1 +
plugins/dummy/gs-plugin-dummy.c | 1 +
plugins/dummy/gs-self-test.c | 1 +
plugins/eos-updater/gs-plugin-eos-updater.c | 1 +
plugins/epiphany/gs-plugin-epiphany.c | 54 ++++++++++++++--------
plugins/fedora-langpacks/gs-self-test.c | 1 +
.../gs-plugin-fedora-pkgdb-collections.c | 1 +
plugins/flatpak/gs-plugin-flatpak.c | 1 +
plugins/flatpak/gs-self-test.c | 1 +
plugins/fwupd/gs-plugin-fwupd.c | 1 +
plugins/fwupd/gs-self-test.c | 1 +
plugins/malcontent/gs-plugin-malcontent.c | 1 +
plugins/modalias/gs-self-test.c | 1 +
plugins/packagekit/gs-plugin-packagekit.c | 1 +
plugins/packagekit/gs-self-test.c | 1 +
plugins/repos/gs-plugin-repos.c | 1 +
plugins/repos/gs-self-test.c | 1 +
plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 1 +
plugins/snap/gs-plugin-snap.c | 1 +
src/gs-application.c | 1 +
30 files changed, 70 insertions(+), 22 deletions(-)
---
diff --git a/lib/gs-cmd.c b/lib/gs-cmd.c
index 707eefb7f..6349cb67a 100644
--- a/lib/gs-cmd.c
+++ b/lib/gs-cmd.c
@@ -366,6 +366,7 @@ main (int argc, char **argv)
plugin_allowlist,
plugin_blocklist,
NULL,
+ NULL,
&error);
if (!ret) {
g_print ("Failed to setup plugins: %s\n", error->message);
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 6c65e41fa..0c184696e 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -2076,6 +2076,7 @@ static void plugin_setup_cb (GObject *source_object,
static void
gs_plugin_loader_call_setup (GsPluginLoader *plugin_loader,
+ GDBusConnection *connection,
GCancellable *cancellable)
{
SetupData setup_data;
@@ -2096,7 +2097,7 @@ gs_plugin_loader_call_setup (GsPluginLoader *plugin_loader,
continue;
if (GS_PLUGIN_GET_CLASS (plugin)->setup_async != NULL) {
- GS_PLUGIN_GET_CLASS (plugin)->setup_async (plugin, cancellable,
+ GS_PLUGIN_GET_CLASS (plugin)->setup_async (plugin, connection, cancellable,
plugin_setup_cb, &setup_data);
setup_data.n_pending++;
}
@@ -2244,7 +2245,7 @@ gs_plugin_loader_setup_again (GsPluginLoader *plugin_loader)
gs_plugin_loader_remove_events (plugin_loader);
/* Start all the plugins setting up again in parallel. */
- gs_plugin_loader_call_setup (plugin_loader, NULL);
+ gs_plugin_loader_call_setup (plugin_loader, NULL, NULL);
#ifdef HAVE_SYSPROF
if (plugin_loader->sysprof_writer != NULL) {
@@ -2290,6 +2291,7 @@ gs_plugin_loader_find_plugins (const gchar *path, GError **error)
* @plugin_loader: a #GsPluginLoader
* @allowlist: list of plugin names, or %NULL
* @blocklist: list of plugin names, or %NULL
+ * @connection: a #GDBusConnection (used by unit tests)
* @cancellable: A #GCancellable, or %NULL
* @error: A #GError, or %NULL
*
@@ -2301,6 +2303,7 @@ gboolean
gs_plugin_loader_setup (GsPluginLoader *plugin_loader,
gchar **allowlist,
gchar **blocklist,
+ GDBusConnection *connection,
GCancellable *cancellable,
GError **error)
{
@@ -2508,7 +2511,7 @@ gs_plugin_loader_setup (GsPluginLoader *plugin_loader,
} while (changes);
/* run setup */
- gs_plugin_loader_call_setup (plugin_loader, cancellable);
+ gs_plugin_loader_call_setup (plugin_loader, connection, cancellable);
/* now we can load the install-queue */
if (!load_install_queue (plugin_loader, error))
diff --git a/lib/gs-plugin-loader.h b/lib/gs-plugin-loader.h
index a7dd40104..de5e26728 100644
--- a/lib/gs-plugin-loader.h
+++ b/lib/gs-plugin-loader.h
@@ -48,6 +48,7 @@ GPtrArray *gs_plugin_loader_job_get_categories_finish (GsPluginLoader *plugin_lo
gboolean gs_plugin_loader_setup (GsPluginLoader *plugin_loader,
gchar **allowlist,
gchar **blocklist,
+ GDBusConnection *connection,
GCancellable *cancellable,
GError **error);
void gs_plugin_loader_dump_state (GsPluginLoader *plugin_loader);
diff --git a/lib/gs-plugin.h b/lib/gs-plugin.h
index 500e3171a..b24504510 100644
--- a/lib/gs-plugin.h
+++ b/lib/gs-plugin.h
@@ -88,6 +88,7 @@ struct _GsPluginClass
const gchar *accept_label);
void (*setup_async) (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);
diff --git a/meson.build b/meson.build
index 6b2163d07..0396c28f0 100644
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,7 @@ conf.set_quoted('APPLICATION_ID', application_id)
# this refers to the gnome-software plugin API version
# this is not in any way related to a package or soname version
-gs_plugin_api_version = '17'
+gs_plugin_api_version = '18'
conf.set_quoted('GS_PLUGIN_API_VERSION', gs_plugin_api_version)
# private subdirectory of libdir for the private shared libgnomesoftware to live in
diff --git a/plugins/core/gs-plugin-appstream.c b/plugins/core/gs-plugin-appstream.c
index cde6a5c2c..1b362a673 100644
--- a/plugins/core/gs-plugin-appstream.c
+++ b/plugins/core/gs-plugin-appstream.c
@@ -808,6 +808,7 @@ static void setup_thread_cb (GTask *task,
static void
gs_plugin_appstream_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/core/gs-plugin-icons.c b/plugins/core/gs-plugin-icons.c
index 72a235ec6..0e1987977 100644
--- a/plugins/core/gs-plugin-icons.c
+++ b/plugins/core/gs-plugin-icons.c
@@ -62,6 +62,7 @@ gs_plugin_icons_dispose (GObject *object)
static void
gs_plugin_icons_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/core/gs-plugin-os-release.c b/plugins/core/gs-plugin-os-release.c
index 685af27ce..dea372565 100644
--- a/plugins/core/gs-plugin-os-release.c
+++ b/plugins/core/gs-plugin-os-release.c
@@ -41,6 +41,7 @@ gs_plugin_os_release_init (GsPluginOsRelease *self)
static void
gs_plugin_os_release_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/core/gs-plugin-rewrite-resource.c b/plugins/core/gs-plugin-rewrite-resource.c
index b52227bae..b7534df40 100644
--- a/plugins/core/gs-plugin-rewrite-resource.c
+++ b/plugins/core/gs-plugin-rewrite-resource.c
@@ -58,6 +58,7 @@ gs_plugin_rewrite_resource_dispose (GObject *object)
static void
gs_plugin_rewrite_resource_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/core/gs-self-test.c b/plugins/core/gs-self-test.c
index 1830638ca..b0fcebd7f 100644
--- a/plugins/core/gs-self-test.c
+++ b/plugins/core/gs-self-test.c
@@ -247,6 +247,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert_true (ret);
diff --git a/plugins/dpkg/gs-self-test.c b/plugins/dpkg/gs-self-test.c
index 0c09b3048..075362815 100644
--- a/plugins/dpkg/gs-self-test.c
+++ b/plugins/dpkg/gs-self-test.c
@@ -74,6 +74,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/dummy/gs-plugin-dummy.c b/plugins/dummy/gs-plugin-dummy.c
index b7e91d185..2312b8ceb 100644
--- a/plugins/dummy/gs-plugin-dummy.c
+++ b/plugins/dummy/gs-plugin-dummy.c
@@ -74,6 +74,7 @@ gs_plugin_dummy_dispose (GObject *object)
static void
gs_plugin_dummy_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/dummy/gs-self-test.c b/plugins/dummy/gs-self-test.c
index b17809e71..8a836762d 100644
--- a/plugins/dummy/gs-self-test.c
+++ b/plugins/dummy/gs-self-test.c
@@ -826,6 +826,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/eos-updater/gs-plugin-eos-updater.c b/plugins/eos-updater/gs-plugin-eos-updater.c
index 6ce246edf..b1088da0f 100644
--- a/plugins/eos-updater/gs-plugin-eos-updater.c
+++ b/plugins/eos-updater/gs-plugin-eos-updater.c
@@ -495,6 +495,7 @@ static void proxy_new_cb (GObject *source_object,
* which is tied to the main thread’s #GMainContext. */
static void
gs_plugin_eos_updater_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/epiphany/gs-plugin-epiphany.c b/plugins/epiphany/gs-plugin-epiphany.c
index fac152a21..b6c625b58 100644
--- a/plugins/epiphany/gs-plugin-epiphany.c
+++ b/plugins/epiphany/gs-plugin-epiphany.c
@@ -37,6 +37,7 @@ struct _GsPluginEpiphany
GsEphyWebAppProvider *epiphany_proxy; /* (owned) */
GDBusProxy *launcher_portal_proxy; /* (owned) */
GFileMonitor *monitor; /* (owned) */
+ GDBusConnection *connection; /* (owned) */
guint changed_id;
GMutex installed_apps_mutex;
};
@@ -105,6 +106,7 @@ static void setup_thread_cb (GTask *task,
static void
gs_plugin_epiphany_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -120,6 +122,9 @@ gs_plugin_epiphany_setup_async (GsPlugin *plugin,
g_debug ("%s", G_STRFUNC);
+ if (connection)
+ self->connection = g_object_ref (connection);
+
/* Watch for changes to the set of installed apps in the main thread.
* This will also trigger when other apps' dynamic launchers are
* installed or removed but that is expected to be infrequent.
@@ -163,16 +168,28 @@ setup_thread_cb (GTask *task,
assert_in_worker (self);
+ if (self->connection == NULL) {
+ self->connection = g_bus_get_sync (G_BUS_TYPE_SESSION,
+ g_task_get_cancellable (task),
+ &local_error);
+ }
+
+ if (self->connection == NULL) {
+ gs_epiphany_error_convert (&local_error);
+ g_task_return_error (task, g_steal_pointer (&local_error));
+ return;
+ }
+
/* Check that the proxy exists (and is owned; it should auto-start) so
* we can disable the plugin for systems which don’t have new enough
* Epiphany.
*/
- self->epiphany_proxy = gs_ephy_web_app_provider_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
-
"org.gnome.Epiphany.WebAppProvider",
-
"/org/gnome/Epiphany/WebAppProvider",
- g_task_get_cancellable (task),
- &local_error);
+ self->epiphany_proxy = gs_ephy_web_app_provider_proxy_new_sync (self->connection,
+ G_DBUS_PROXY_FLAGS_NONE,
+ "org.gnome.Epiphany.WebAppProvider",
+ "/org/gnome/Epiphany/WebAppProvider",
+ g_task_get_cancellable (task),
+ &local_error);
if (self->epiphany_proxy == NULL) {
gs_epiphany_error_convert (&local_error);
g_task_return_error (task, g_steal_pointer (&local_error));
@@ -188,12 +205,12 @@ setup_thread_cb (GTask *task,
}
/* Check if the dynamic launcher portal is available and disable otherwise */
- portal_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, G_DBUS_PROXY_FLAGS_NONE, NULL,
- "org.freedesktop.portal.Desktop",
- "/org/freedesktop/portal/desktop",
- "org.freedesktop.DBus.Properties",
- g_task_get_cancellable (task),
- &local_error);
+ portal_proxy = g_dbus_proxy_new_sync (self->connection, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ "org.freedesktop.portal.Desktop",
+ "/org/freedesktop/portal/desktop",
+ "org.freedesktop.DBus.Properties",
+ g_task_get_cancellable (task),
+ &local_error);
if (portal_proxy == NULL) {
gs_epiphany_error_convert (&local_error);
g_task_return_error (task, g_steal_pointer (&local_error));
@@ -215,12 +232,12 @@ setup_thread_cb (GTask *task,
}
/* And make a proxy object for the dynamic launcher portal */
- self->launcher_portal_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, NULL,
- "org.freedesktop.portal.Desktop",
- "/org/freedesktop/portal/desktop",
- "org.freedesktop.portal.DynamicLauncher",
- g_task_get_cancellable (task),
- &local_error);
+ self->launcher_portal_proxy = g_dbus_proxy_new_sync (self->connection, G_DBUS_PROXY_FLAGS_NONE, NULL,
+ "org.freedesktop.portal.Desktop",
+ "/org/freedesktop/portal/desktop",
+ "org.freedesktop.portal.DynamicLauncher",
+ g_task_get_cancellable (task),
+ &local_error);
if (self->launcher_portal_proxy == NULL) {
gs_epiphany_error_convert (&local_error);
g_task_return_error (task, g_steal_pointer (&local_error));
@@ -313,6 +330,7 @@ gs_plugin_epiphany_dispose (GObject *object)
g_clear_object (&self->launcher_portal_proxy);
g_clear_object (&self->monitor);
g_clear_object (&self->worker);
+ g_clear_object (&self->connection);
G_OBJECT_CLASS (gs_plugin_epiphany_parent_class)->dispose (object);
}
diff --git a/plugins/fedora-langpacks/gs-self-test.c b/plugins/fedora-langpacks/gs-self-test.c
index f9268758b..5b0438593 100644
--- a/plugins/fedora-langpacks/gs-self-test.c
+++ b/plugins/fedora-langpacks/gs-self-test.c
@@ -76,6 +76,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
index 6d28b2cd5..5382b6e6b 100644
--- a/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
+++ b/plugins/fedora-pkgdb-collections/gs-plugin-fedora-pkgdb-collections.c
@@ -127,6 +127,7 @@ _file_changed_cb (GFileMonitor *monitor,
static void
gs_plugin_fedora_pkgdb_collections_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/flatpak/gs-plugin-flatpak.c b/plugins/flatpak/gs-plugin-flatpak.c
index d8c5bb6d3..c16e8e612 100644
--- a/plugins/flatpak/gs-plugin-flatpak.c
+++ b/plugins/flatpak/gs-plugin-flatpak.c
@@ -163,6 +163,7 @@ static void setup_thread_cb (GTask *task,
static void
gs_plugin_flatpak_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index fcf307a59..c6e771c56 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -1940,6 +1940,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert_true (ret);
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index db2d3b62d..af646cf0c 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -227,6 +227,7 @@ static void setup_features_cb (GObject *source_object,
static void
gs_plugin_fwupd_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/fwupd/gs-self-test.c b/plugins/fwupd/gs-self-test.c
index b965c4d68..ec4d904c3 100644
--- a/plugins/fwupd/gs-self-test.c
+++ b/plugins/fwupd/gs-self-test.c
@@ -93,6 +93,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert_true (ret);
diff --git a/plugins/malcontent/gs-plugin-malcontent.c b/plugins/malcontent/gs-plugin-malcontent.c
index ed94aad73..abf5dd682 100644
--- a/plugins/malcontent/gs-plugin-malcontent.c
+++ b/plugins/malcontent/gs-plugin-malcontent.c
@@ -268,6 +268,7 @@ static void get_app_filter_cb (GObject *source_object,
static void
gs_plugin_malcontent_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/modalias/gs-self-test.c b/plugins/modalias/gs-self-test.c
index bf9e7cd96..300d7f0f9 100644
--- a/plugins/modalias/gs-self-test.c
+++ b/plugins/modalias/gs-self-test.c
@@ -90,6 +90,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 71b4d6553..605734d23 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -2182,6 +2182,7 @@ static void get_offline_update_permission_cb (GObject *source_object,
static void
gs_plugin_packagekit_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/packagekit/gs-self-test.c b/plugins/packagekit/gs-self-test.c
index 5bea5d0d8..edb13f64e 100644
--- a/plugins/packagekit/gs-self-test.c
+++ b/plugins/packagekit/gs-self-test.c
@@ -260,6 +260,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/repos/gs-plugin-repos.c b/plugins/repos/gs-plugin-repos.c
index 8e57e8ba5..54bada9c1 100644
--- a/plugins/repos/gs-plugin-repos.c
+++ b/plugins/repos/gs-plugin-repos.c
@@ -217,6 +217,7 @@ gs_plugin_repos_changed_cb (GFileMonitor *monitor,
static void
gs_plugin_repos_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/repos/gs-self-test.c b/plugins/repos/gs-self-test.c
index c7b44bbe1..d25bd690b 100644
--- a/plugins/repos/gs-self-test.c
+++ b/plugins/repos/gs-self-test.c
@@ -58,6 +58,7 @@ main (int argc, char **argv)
(gchar**) allowlist,
NULL,
NULL,
+ NULL,
&error);
g_assert_no_error (error);
g_assert (ret);
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 3d296a8b3..0cf9f395a 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -343,6 +343,7 @@ static void setup_thread_cb (GTask *task,
static void
gs_plugin_rpm_ostree_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index d0953275f..85698b75c 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -239,6 +239,7 @@ static void get_system_information_cb (GObject *source_object,
static void
gs_plugin_snap_setup_async (GsPlugin *plugin,
+ GDBusConnection *connection,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
diff --git a/src/gs-application.c b/src/gs-application.c
index 04f100362..4b8778891 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -188,6 +188,7 @@ gs_application_initialize_plugins (GsApplication *app)
plugin_allowlist,
plugin_blocklist,
NULL,
+ NULL,
&error)) {
g_warning ("Failed to setup plugins: %s", error->message);
exit (1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]