Gnome/OpenJDK system-wide proxy definition

Bug #1199822 reported by G.M. on 2013-07-10
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description


An application that I use (to name it: weka [1], written in java) uses the (new?) possibility of java to access the system-wide proxy definition, through the System Property: System.setProperty("", "true") [2,3,4].

The sources of the DefaultProxySelector refer to a native method for getting the system-wide proxy definition. I was unable to quickly find the source code of this method, but reading some internet forums, I discovered that the only place they are looking for is the Gnome's definition of the proxy.

Therefore, I googled a little bit on how Gnome defines the proxy, and discovered at least 6 means to do so:
1) gsettings set org.gnome.system.proxy.*
2) dconf write '/system/proxy/http/*'
3) gconftool --set -t string '/system/proxy/*'
4) gconftool-2 --set -t string '/system/proxy/*'
5) gnome-control-panel -> Network -> Proxy
6) gconf-editor GUI: /system/http_proxy/host

Unfortunately, only the last solution finally allowed me to get my grips on the strange value that weka insisted on using for the proxy.

So I'm not sure what I should do with all that information... I'd like to file at least two bugs:

- On OpenJDK. Indeed, I don't understand, since java is mainly commandline, why they insist in not using the environment variables *_proxy that the user or any gnome/kde/etc. tools can easily configure?

- On Gnome. Some day someone will have to explain to me why gnome developers insists in creating multiple complicated ways of doing things that finally do not work, when there exits a simple way that have proved to work perfectly for years...

What do you think?


[2] (section 4)

Adolfo Jayme (fitojb) on 2013-07-13
affects: launchpad → ubuntu
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers