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



commit 9ea331f97fbccb90ef4786b9e9709ea7e82bb468
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 29d9d83..dae6152 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]