changeset 17058:f1547260a11e

Fix for detecting gnome proxy settings from ticket #935 This prevents trying to use a proxy when gnome is configured for automatic proxy configuration. If someone feels like writing a javascript parser for libpurple to parse proxy autoconfiguration files we could in the future support automatic proxy settings too.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 12 May 2007 14:28:59 +0000
parents 34f698ffe88b
children 73556f13c3b5 cb4380df3005
files libpurple/proxy.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/proxy.c	Sat May 12 13:24:59 2007 +0000
+++ b/libpurple/proxy.c	Sat May 12 14:28:59 2007 +0000
@@ -217,14 +217,14 @@
 		g_free(path);
 
 		/* See whether to use a proxy. */
-		if (!g_spawn_command_line_sync("gconftool-2 -g /system/http_proxy/use_http_proxy", &tmp,
+		if (!g_spawn_command_line_sync("gconftool-2 -g /system/proxy/mode", &tmp,
 					       NULL, NULL, NULL))
 			return purple_global_proxy_get_info();
-		if (!strcmp(tmp, "false\n")) {
+		if (!strcmp(tmp, "none\n")) {
 			info.type = PURPLE_PROXY_NONE;
 			g_free(tmp);
 			return &info;
-		} else if (strcmp(tmp, "true\n")) {
+		} else if (strcmp(tmp, "manual\n")) {
 			g_free(tmp);
 			return purple_global_proxy_get_info();
 		}