proxy/gnome: check GNOME_DESKTOP_SESSION_ID too
authorDan Winship <danw@gnome.org>
Tue, 4 Jun 2013 23:21:10 +0000 (20:21 -0300)
committerDan Winship <danw@gnome.org>
Tue, 4 Jun 2013 23:23:06 +0000 (20:23 -0300)
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

index 3a7e82e..464e3d6 100644 (file)
@@ -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;