[gnome-software] Use new snapd connection API
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Use new snapd connection API
- Date: Tue, 18 Jun 2019 02:19:58 +0000 (UTC)
commit 8f735c632e939ae4a038c4a24318cd90bb55fd25
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Jun 18 11:56:19 2019 +1200
Use new snapd connection API
meson.build | 2 +-
plugins/snap/gs-plugin-snap.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index a22e0c9b..accd990d 100644
--- a/meson.build
+++ b/meson.build
@@ -169,7 +169,7 @@ if get_option('gudev')
endif
if get_option('snap')
- snap = dependency('snapd-glib', version : '>= 1.45')
+ snap = dependency('snapd-glib', version : '>= 1.48')
endif
gnome = import('gnome')
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index d69451ab..18146f60 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -1059,8 +1059,8 @@ is_graphical (GsPlugin *plugin, GsApp *app, GCancellable *cancellable)
if (client == NULL)
return FALSE;
- if (!snapd_client_get_interfaces_sync (client, &plugs, NULL, cancellable, &error)) {
- g_warning ("Failed to check interfaces: %s", error->message);
+ if (!snapd_client_get_connections_sync (client, NULL, NULL, &plugs, NULL, cancellable, &error)) {
+ g_warning ("Failed to get connections: %s", error->message);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]