Ticket #3070: clean_gconf_proxy.py

File clean_gconf_proxy.py, 884 bytes (added by manuq, 11 years ago)

Script that cleans the proxy settings from GConf

Line 
1from gi.repository import GConf
2
3# http://people.gnome.org/~bmsmith/gconf-docs/C/gnome-vfs.html
4
5client = GConf.Client.get_default()
6client.set_bool('/system/http_proxy/use_http_proxy', False)
7client.set_string('/system/http_proxy/host', '')
8client.set_int('/system/http_proxy/port', 0)
9client.set_string('/system/http_proxy/authentication_user', '')
10client.set_string('/system/http_proxy/authentication_password', '')
11# print 'http_proxy/ignore_hosts', client.get('/system/http_proxy/ignore_hosts')
12client.set_string('/system/proxy/mode', '')
13client.set_string('/system/proxy/secure_host', '')
14client.set_int('/system/proxy/secure_port', 0)
15client.set_string('/system/proxy/ftp_host', '')
16client.set_int('/system/proxy/ftp_port', 0)
17client.set_string('/system/proxy/socks_host', '')
18client.set_int('/system/proxy/socks_port', 0)
19client.set_string('/system/proxy/autoconfig_url', '')