Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-04-03 Thread Manash Raja
Hi all, The proxy feature implementation looks complete now. https://github.com/sugarlabs/sugar/pull/665 Hence, please review it and provide suggestions. :) Shall I update the feature page for the same? https://wiki.sugarlabs.org/go/Features/Proxy_Settings Thanks. Regards Manash Pratim Das (Ma

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread James Cameron
On Wed, Mar 16, 2016 at 01:57:06AM +0530, Manash Raja wrote: > Dear James, > > Regarding moving to src/jarabe/main.py , as far as I know, there > isn't a direct way for python to set the required environment > variables (http_proxy) and make it accessible to all other > processes. The various meth

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread Sam Parkinson
Network manger doesn't have an api to configure proxy. From the arch wiki: > > Automation with network managers > NetworkManager cannot change the environment variables. On Wed, Mar 16, 2016 at 7:37 AM, Gonzalo Odiard wrote: Are you using NetworkManager API to configure the proxy? On Tue, M

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread Manash Raja
Hi Gonzalo, No, I am not using NetworkManager API for the proxy configuration. I am settings the proxy settings to "org.gnome.sugar.proxy" schemas and then exporting them to environment variables ($http_proxy). On Wed, Mar 16, 2016 at 2:07 AM, Gonzalo Odiard wrote: > Are you using NetworkMana

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread Gonzalo Odiard
Are you using NetworkManager API to configure the proxy? On Tue, Mar 15, 2016 at 5:27 PM, Manash Raja wrote: > Dear James, > > Regarding moving to src/jarabe/main.py , as far as I know, there isn't a > direct way for python to set the required environment variables > (http_proxy) and make it acc

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-15 Thread Manash Raja
Dear James, Regarding moving to src/jarabe/main.py , as far as I know, there isn't a direct way for python to set the required environment variables (http_proxy) and make it accessible to all other processes. The various method in python for editing the environment variables, keeps the changes lim

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-14 Thread James Cameron
Thanks, that's interesting. Your /usr/bin/sugar (aka bin/sugar.in) will run gsettings many times, and this is inefficient, causing unnecessary delay during startup. Perhaps if you move this into src/jarabe/main.py which already uses Gio.Settings? You have worked on your master branch and the pull

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-14 Thread Manash Raja
Hi, I thank you all for the guidance. I modified my PR as per your suggestions and now the implementation of the proxy feature is far better. @Sam, as you suggested, I have now completely removed the need of re-writing "proxy.sh" every time the settings changes and am using "org.gnome.system.prox

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread James Cameron
On Sun, Mar 13, 2016 at 11:18:46PM -0300, Gonzalo Odiard wrote: > On Sun, Mar 13, 2016 at 11:09 PM, Jerry Vonau <[1]m...@jvonau.ca> wrote: > > > Yea that has roots to the old ActivityCentral fork, any reason > > why this has not been 'upstreamed' from OneEducation(OLPC-AU) to > > SugarLabs? > > Y

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread Gonzalo Odiard
On Sun, Mar 13, 2016 at 11:09 PM, Jerry Vonau wrote: > Yea that has roots to the old ActivityCentral fork, any reason why this has > not been 'upstreamed' from OneEducation(OLPC-AU) to SugarLabs? > > Yes. Was not accepted by sugar upstream. I upstreamed all that was possible, the only changes tha

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread Jerry Vonau
Yea that has roots to the old ActivityCentral fork, any reason why this has not been 'upstreamed' from OneEducation(OLPC-AU) to SugarLabs? > On March 13, 2016 at 8:18 PM Gonzalo Odiard wrote: > > > There are a old patch from Manuel Quiñones here that could be useful: > > https://github.com/go

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread James Cameron
Thanks, that's the one I remember. Manash, please review that patch. On Sun, Mar 13, 2016 at 10:18:59PM -0300, Gonzalo Odiard wrote: > There are a old patch from Manuel Quiñones here that could be useful: > > [1]https://github.com/godiard/sugar/commit/ > ebfd1ed0f941dca982b90d0d08efda7c2ae75a84

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread Gonzalo Odiard
There are a old patch from Manuel Quiñones here that could be useful: https://github.com/godiard/sugar/commit/ebfd1ed0f941dca982b90d0d08efda7c2ae75a84 On Sun, Mar 13, 2016 at 10:08 PM, James Cameron wrote: > Yes, the feature page is out of date. Please fix it. > > Pages that link to the featu

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread James Cameron
Yes, the feature page is out of date. Please fix it. Pages that link to the feature page are 0.96 and 0.98 feature lists. http://wiki.sugarlabs.org/go/0.96/Feature_List (defer) http://wiki.sugarlabs.org/go/0.98/Feature_List (accepted, but x%) The feature was code complete, with pre-github pull

Re: [Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-13 Thread Sam Parkinson
Hi Manash, I don't know why the feature page says 100% complete. Maybe it was included in sugar-dextrose which IDK where the code is for nowdays. Anyway, it it looking good. Overall, I saw it and thought that manually setting environment variables was very messy. But consulting the archli

[Sugar-devel] Proxy Settings Feature in the recent versions of sugar

2016-03-12 Thread Manash Raja
Hi, The college Internet connection that I have goes through a proxy server. I am an interested developer as well as a sugar user along with my brother in school. Even though there is a feature page for proxy setting ( https://wiki.sugarlabs.org/go/Features/Proxy_Settings ), it seems that the sett