[glib-networking] proxy/gnome: only use this when running under GNOME
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] proxy/gnome: only use this when running under GNOME
- Date: Sun, 9 Dec 2012 17:59:13 +0000 (UTC)
commit 83c85c2108be016613e85e07790eb0d492ae8214
Author: Dan Winship <danw gnome org>
Date: Sun Dec 9 18:55:33 2012 +0100
proxy/gnome: only use this when running under GNOME
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).
proxy/gnome/gproxyresolvergnome.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/proxy/gnome/gproxyresolvergnome.c b/proxy/gnome/gproxyresolvergnome.c
index 31cdd0d..ae046d4 100644
--- a/proxy/gnome/gproxyresolvergnome.c
+++ b/proxy/gnome/gproxyresolvergnome.c
@@ -390,9 +390,7 @@ update_settings (GProxyResolverGnome *resolver)
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]