Ticket #3070: set_gconf_proxy.py
File set_gconf_proxy.py, 350 bytes (added by manuq, 11 years ago) |
---|
Line | |
---|---|
1 | from gi.repository import GConf |
2 | |
3 | # http://people.gnome.org/~bmsmith/gconf-docs/C/gnome-vfs.html |
4 | |
5 | client = GConf.Client.get_default() |
6 | client.set_bool('/system/http_proxy/use_http_proxy', True) |
7 | client.set_string('/system/http_proxy/host', '54.247.6.78') |
8 | client.set_int('/system/http_proxy/port', 3128) |
9 | client.set_string('/system/proxy/mode', 'manual') |