[gnome-software/wip/ubuntu-3-22: 24/28] snap: Use new Polkit API



commit 4c0ab490936896154a7c19f9ef9be41d8c218365
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Sep 5 11:36:24 2017 +1200

    snap: Use new Polkit API

 src/plugins/gs-snapd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-snapd.c b/src/plugins/gs-snapd.c
index a5b27db..7c4fe28 100644
--- a/src/plugins/gs-snapd.c
+++ b/src/plugins/gs-snapd.c
@@ -140,6 +140,7 @@ send_request (const gchar  *method,
        }
        if (content)
                g_string_append_printf (request, "Content-Length: %zu\r\n", strlen (content));
+       g_string_append (request, "X-Allow-Interaction: true\r\n");
        g_string_append (request, "\r\n");
        if (content)
                g_string_append (request, content);


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