Ticket #3070: set_gconf_proxy.py

File set_gconf_proxy.py, 350 bytes (added by manuq, 8 years ago)

Script that sets an example proxy to 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', True)
7client.set_string('/system/http_proxy/host', '54.247.6.78')
8client.set_int('/system/http_proxy/port', 3128)
9client.set_string('/system/proxy/mode', 'manual')