[glib-networking] proxy/gnome: check GNOME_DESKTOP_SESSION_ID too



commit 9b548986fb1ba1ec1b274760615b29bb174d4a49
Author: Dan Winship <danw gnome org>
Date:   Tue Jun 4 20:21:10 2013 -0300

    proxy/gnome: check GNOME_DESKTOP_SESSION_ID too
    
    It claims to be deprecated, but $GNOME_DESKTOP_SESSION_ID seems to be
    the only reliable identifier of GNOME-ness (other than probing D-Bus,
    which we can't do from here).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=701377

 proxy/gnome/gproxyresolvergnome.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/proxy/gnome/gproxyresolvergnome.c b/proxy/gnome/gproxyresolvergnome.c
index 3a7e82e..464e3d6 100644
--- a/proxy/gnome/gproxyresolvergnome.c
+++ b/proxy/gnome/gproxyresolvergnome.c
@@ -315,6 +315,9 @@ g_proxy_resolver_gnome_is_supported (GProxyResolver *object)
 {
   const char *session;
 
+  if (g_getenv ("GNOME_DESKTOP_SESSION_ID"))
+    return TRUE;
+
   session = g_getenv ("DESKTOP_SESSION");
   if (session == NULL)
     return FALSE;


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