From 77075d82f4ec39c35d14536cf13e4266839ae81f Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 4 Dec 2015 15:13:22 +0000 Subject: 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 --- examples/gconf-proxy-client.py | 2 +- examples/gconf-proxy-service2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') 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): -- cgit v1.2.3