File: gconf-proxy-client.py

package info (click to toggle)
dbus 0.23.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,112 kB
  • ctags: 4,832
  • sloc: ansic: 58,374; sh: 8,603; xml: 7,376; cs: 3,348; cpp: 1,043; makefile: 767; python: 523; java: 15
file content (11 lines) | stat: -rw-r--r-- 333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import dbus

gconf_key = "/desktop/gnome/file_views/icon_theme"

bus = dbus.SessionBus()
gconf_service = bus.get_service("org.gnome.GConf")
gconf_key_object = gconf_service.get_object("/org/gnome/GConf" + gconf_key, "org.gnome.GConf")

value = gconf_key_object.getString()

print ("Value of GConf key %s is %s" % (gconf_key, value))