main: Move neard to the system bus
[platform/upstream/neard.git] / test / start-poll
index 60ac2f4..69431d5 100755 (executable)
@@ -7,7 +7,7 @@ if len(sys.argv) < 2:
        print "Usage: %s <nfc device>" % (sys.argv[0])
        sys.exit(1)
 
-bus = dbus.SessionBus()
+bus = dbus.SystemBus()
 
 manager = dbus.Interface(bus.get_object("org.neard", "/"),
                                        "org.neard.Manager")
@@ -20,4 +20,4 @@ adapter = dbus.Interface(bus.get_object("org.neard", path),
 try:
        adapter.StartPoll()
 except dbus.DBusException, error:
-       print "%s: %s" % (error._dbus_error_name, error.message)
\ No newline at end of file
+       print "%s: %s" % (error._dbus_error_name, error.message)