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', False) |
---|
7 | client.set_string('/system/http_proxy/host', '') |
---|
8 | client.set_int('/system/http_proxy/port', 0) |
---|
9 | client.set_string('/system/http_proxy/authentication_user', '') |
---|
10 | client.set_string('/system/http_proxy/authentication_password', '') |
---|
11 | # print 'http_proxy/ignore_hosts', client.get('/system/http_proxy/ignore_hosts') |
---|
12 | client.set_string('/system/proxy/mode', '') |
---|
13 | client.set_string('/system/proxy/secure_host', '') |
---|
14 | client.set_int('/system/proxy/secure_port', 0) |
---|
15 | client.set_string('/system/proxy/ftp_host', '') |
---|
16 | client.set_int('/system/proxy/ftp_port', 0) |
---|
17 | client.set_string('/system/proxy/socks_host', '') |
---|
18 | client.set_int('/system/proxy/socks_port', 0) |
---|
19 | client.set_string('/system/proxy/autoconfig_url', '') |
---|