On 26 January 2012 12:01, Simon Schampijer <si...@schampijer.de> wrote:
> On 01/24/2012 10:31 PM, Sascha Silbe wrote: > >> From: Jerry Vonau<jvo...@shaw.ca> >> >> Some applications and tools and even some parts of Sugar will use the >> http_proxy environment variable if set, but don't use the Gnome (GConf) >> proxy >> settings. >> >> After changing the GConf proxy settings, Sugar needs to be restarted for >> the >> http_proxy environment variable to be updated. >> >> [factored out into separate function; some clean-ups; added description] >> Signed-off-by: Sascha >> Silbe<silbe@activitycentral.**com<si...@activitycentral.com> >> > >> --- >> bin/sugar-session | 26 ++++++++++++++++++++++++++ >> 1 files changed, 26 insertions(+), 0 deletions(-) >> >> diff --git a/bin/sugar-session b/bin/sugar-session >> index ee0048d..7eaa8f1 100755 >> --- a/bin/sugar-session >> +++ b/bin/sugar-session >> @@ -2,6 +2,7 @@ >> # Copyright (C) 2006, Red Hat, Inc. >> # Copyright (C) 2009, One Laptop Per Child Association Inc >> # Copyright (C) 2010, Plan >> Ceibal<comunidad@plan.ceibal.**edu.uy<comuni...@plan.ceibal.edu.uy> >> > >> +# Copyright (C) 2011, OLPC-AU. >> # >> # This program is free software; you can redistribute it and/or modify >> # it under the terms of the GNU General Public License as published by >> @@ -211,6 +212,30 @@ def setup_accessibility_cb(): >> accessibility_manager = accessibility.**AccessibilityManager() >> accessibility_manager.setup_**accessibility() >> >> + >> +def export_proxy_settings(): >> + """Export manual proxy settings from GConf as environment variables >> + >> + Some applications and tools and even some parts of Sugar will use >> + the http_proxy environment variable if set, but don't use the Gnome >> + (GConf) proxy settings. >> > > Hi, > > can you give a few examples which ones are using which method? My fist hit > was wget using the env variable [1]. More light on that welcome. > > Regards, > Simon > > [1] http://www.gnu.org/software/wget/manual/html_node/Proxies.html > Think this fixes the proxy issue for all python based programs. This patch allows OLPC's sugar-update-control to work from behind proxies, which we have working in the field with this patch. Jerry
_______________________________________________ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel