[gnome-software] snap: Use new Polkit API in snapd-glib
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Use new Polkit API in snapd-glib
- Date: Mon, 4 Sep 2017 23:20:54 +0000 (UTC)
commit e8ecbc784c30bf86eadd94094e9ed4e2345c7710
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Sep 5 11:19:12 2017 +1200
snap: Use new Polkit API in snapd-glib
meson.build | 2 +-
plugins/snap/gs-plugin-snap.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index faed8ef..267b091 100644
--- a/meson.build
+++ b/meson.build
@@ -168,7 +168,7 @@ if get_option('enable-gudev')
endif
if get_option('enable-snap')
- snap = dependency('snapd-glib', version : '>= 1.16')
+ snap = dependency('snapd-glib', version : '>= 1.19')
endif
gnome = import('gnome')
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 6b22a50..f0d8571 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -41,6 +41,7 @@ gs_plugin_initialize (GsPlugin *plugin)
g_autoptr (GError) error = NULL;
priv->client = snapd_client_new ();
+ snapd_client_set_allow_interaction (priv->client, TRUE);
if (!snapd_client_connect_sync (priv->client, NULL, &error)) {
gs_plugin_set_enabled (plugin, FALSE);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]