From ce62ca0c146d545e86b9ff665257c6779f88a673 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 6 Jul 2016 19:42:12 -0400 Subject: [PATCH] Be more truthful about network availability If flatpak-info exists, but we don't have the shared key, then the network is not available. Pointed out by Cosimo. --- gio/gportalsupport.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gportalsupport.c b/gio/gportalsupport.c index 9eab04659..72c08630c 100644 --- a/gio/gportalsupport.c +++ b/gio/gportalsupport.c @@ -61,6 +61,8 @@ glib_network_available_in_sandbox (void) available = g_strv_contains ((const char * const *)shared, "network"); g_strfreev (shared); } + else + available = FALSE; } g_key_file_free (keyfile);