I remember playing a bit with proxy settings in Ubuntu a couple of years
ago.

The thing in ubuntu is that they do not use the typical Unix environment
variables to set the proxy but use(or use*d* at the time...) the gconf
mechanism from GNOME. A detailed explanation is in here [1].

The code for getting the http settings and others from ubuntu got
integrated.

https://github.com/pharo-project/pharo-vm/blob/55fbd0b0279998a4a33852f5afb3d213986cc3ae/platforms/unix/plugins/InternetConfigPlugin/sqUnixInternetConfiguration.c

We should however take a look and, if it works in latest ubuntu versions we
should use it. If not either fix it or throw it away.

Also, the other detail is that there is work to do with the proxy settings
on the image side:

- they are only fetched at startup (so updating while the image is running
will not update the image)

- it is by default deactivated in other than mac...

Here is the code

InternetPlugin >> startUp
Smalltalk os isMacOS
ifTrue: [
self useHTTPProxy
ifTrue: [
(self getHTTPProxyHost findTokens: ':') ifNotEmpty: [ :p |
 NetworkSystemSettings
httpProxyServer: p first;
httpProxyPort: p second asInteger;
useHTTPProxy: true ] ]
ifFalse: [
NetworkSystemSettings useHTTPProxy: false ] ]

Guille

[1]
http://stackoverflow.com/questions/7230422/how-to-find-default-proxy-settings-in-ubuntu

El mar., 10 de mar. de 2015 a la(s) 7:42 p. m., Torsten Bergmann <
[email protected]> escribió:

> Still there are three basic things I miss hardly in a unified way
> from the out of the box PHARO/ PHARO VM for the standard platforms (Unix,
> Win, Mac):
>
>  1. ability to execute another process (to start another executable process
>     either asynchronous or blocking until the external process is finished)
>
>  2. ability to open a browser on a URL
>
>  3. Query for the native platform HTTP/HTTPs proxy settings (if there is
> one)
>     so Zinc and others work behind a proxy.
>
>
> Situation hasnt improved on this side compared to Squeak/Squeak VM times
> (which also
> did not provide something like this).
>
> I know there is OSProcess, FFI, NB, and my OS-... packages and anyone could
> roll their own.
>
> But I would like to see this included BY DEFAULT in an easy and uniform
> way: either in
> the VM or default image even when on exotic platforms it returns
> ERROR_NOT_AVAILABLE.
>
> Any comments?
>
> Thanks
> T.
>
>
>

Reply via email to