mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 20:40:07 +01:00
- added new type classes for hinting to the marashaler what type to send over the wire - added int16 and uint16 marshalers - Fixed a bug in the type constants that caused int32 to go out as uint16 over the wire * python/dbus.py: split up into different files and renamed _dbus.py * python/__init__.py, python/_util.py, python/decorators.py, python/exceptions.py, python/proxies.py, python/services.py, python/types.py: new files split off from dbus.py * python/Makefile.am: Add new files, remove dbus.py and install all python files to <python module dir>/dbus * python/examples/*: Added #!/usr/bin/env python to the top of every example. Patch provided by Tatavarty Kalyan
13 lines
356 B
Python
13 lines
356 B
Python
#!/usr/bin/env python
|
|
|
|
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))
|