summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2008-05-08 20:12:07 +0100
committerRoss Burton <ross@burtonini.com>2008-05-08 20:12:07 +0100
commit3cb8389cfe81dd5ddabdbb96d042f6540a9e5ec0 (patch)
treed53a6553da1cf0ea7005f2ac5b274d875bd77665 /examples
parent3cf6a3970a4ac4011ecf5f20a7489e4b97c6b8e6 (diff)
Set an interface when calling control.Create
Without an interface the system bus ACLs reject the message.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/simple-gps-python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple-gps-python.py b/examples/simple-gps-python.py
index 8687a4e..df1c96b 100755
--- a/examples/simple-gps-python.py
+++ b/examples/simple-gps-python.py
@@ -33,7 +33,7 @@ bus = dbus.SystemBus()
control = bus.get_object(GYPSY_DBUS_SERVICE, GYPSY_DBUS_PATH)
# Create a client for the specified GPS device
-path = control.Create(sys.argv[1])
+path = control.Create(sys.argv[1], dbus_interface=GYPSY_CONTROL_DBUS_INTERFACE)
# Get a proxy to the client
gps = bus.get_object(GYPSY_DBUS_SERVICE, path)