diff options
author | Simon McVittie <smcv@debian.org> | 2015-12-04 15:13:22 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2015-12-04 15:13:22 +0000 |
commit | 77075d82f4ec39c35d14536cf13e4266839ae81f (patch) | |
tree | 5322034ac6c805a7fd1a815d6f8169880f0773c9 | |
parent | 1dbda697112becc44e0aa8e303159e0fae5852a3 (diff) |
Use a name in example.com for our example GConf proxy
dbus-python is not a GNOME project, so we should not use their namespace.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85720
-rwxr-xr-x | examples/gconf-proxy-client.py | 2 | ||||
-rwxr-xr-x | examples/gconf-proxy-service2.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/gconf-proxy-client.py b/examples/gconf-proxy-client.py index 2e440f4..431c4b0 100755 --- a/examples/gconf-proxy-client.py +++ b/examples/gconf-proxy-client.py @@ -28,7 +28,7 @@ import dbus gconf_key = "/desktop/gnome/file_views/icon_theme" bus = dbus.SessionBus() -gconf_key_object = dbus.Interface(bus.get_object("org.gnome.GConf.Example", "/org/gnome/GConf" + gconf_key), "org.gnome.GConf") +gconf_key_object = dbus.Interface(bus.get_object("com.example.GConfProxy", "/org/gnome/GConf" + gconf_key), "org.gnome.GConf") value = gconf_key_object.getString() diff --git a/examples/gconf-proxy-service2.py b/examples/gconf-proxy-service2.py index 7ce132b..5ff54f3 100755 --- a/examples/gconf-proxy-service2.py +++ b/examples/gconf-proxy-service2.py @@ -33,7 +33,7 @@ import gconf dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) # there is a real service called "org.gnome.GConf"; don't collide with it. -name = dbus.service.BusName("org.gnome.GConf.Example", dbus.SessionBus()) +name = dbus.service.BusName("com.example.GConfProxy", dbus.SessionBus()) class GConfObject(dbus.service.FallbackObject): def __init__(self): |