The original idea had been that people could just not build/install
this module if they didn't want the GNOME proxy settings, but that
hasn't really worked. So change it to only use this module when in a
GNOME session (falling back to the libproxy module otherwise).
static gboolean
g_proxy_resolver_gnome_is_supported (GProxyResolver *object)
{
- GProxyResolverGnome *resolver = G_PROXY_RESOLVER_GNOME (object);
-
- return resolver->proxy_settings != NULL;
+ return !g_strcmp0 (g_getenv ("DESKTOP_SESSION"), "gnome");
}
static gboolean