summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2015-12-04 15:13:22 +0000
committerSimon McVittie <smcv@debian.org>2015-12-04 15:13:22 +0000
commit77075d82f4ec39c35d14536cf13e4266839ae81f (patch)
tree5322034ac6c805a7fd1a815d6f8169880f0773c9
parent1dbda697112becc44e0aa8e303159e0fae5852a3 (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-xexamples/gconf-proxy-client.py2
-rwxr-xr-xexamples/gconf-proxy-service2.py2
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):