[glib/portal] Be more truthful about network availability



commit ce62ca0c146d545e86b9ff665257c6779f88a673
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 6 19:42:12 2016 -0400

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gportalsupport.c b/gio/gportalsupport.c
index 9eab046..72c0863 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);


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