import dbus
bus = dbus.SessionBus()
-client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"),
"org.bluez.obex.Client")
if (len(sys.argv) < 4):
bus = dbus.SessionBus()
mainloop = gobject.MainLoop()
- client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
- "org.bluez.obex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
+ "org.bluez.obex.Client")
print "Creating Session"
path = client.CreateSession(options.device, { "Target": "ftp" })
import dbus
bus = dbus.SessionBus()
-client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"),
"org.bluez.obex.Client")
if (len(sys.argv) < 3):
def list_folder(folder):
bus = dbus.SessionBus()
- client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
- "org.bluez.obex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
+ "org.bluez.obex.Client")
path = client.CreateSession(sys.argv[1], { "Target": "ftp" })
bus = dbus.SessionBus()
mainloop = gobject.MainLoop()
- client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
- "org.bluez.obex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
+ "org.bluez.obex.Client")
print "Creating Session"
path = client.CreateSession(options.device, { "Target": "map" })
bus = dbus.SessionBus()
mainloop = gobject.MainLoop()
- client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
- "org.bluez.obex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
+ "org.bluez.obex.Client")
print "Creating Session"
path = client.CreateSession(options.device, { "Target": "OPP" })
bus = dbus.SessionBus()
mainloop = gobject.MainLoop()
- client = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
- "org.bluez.obex.Client")
+ client = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
+ "org.bluez.obex.Client")
if (len(sys.argv) < 2):
print "Usage: %s <device>" % (sys.argv[0])
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
bus = dbus.SessionBus()
- manager = dbus.Interface(bus.get_object("org.bluez.obex", "/"),
+ manager = dbus.Interface(bus.get_object("org.bluez.obex",
+ "/org/bluez/obex"),
"org.bluez.obex.Manager")
bus.add_signal_receiver(new_transfer,
dbus_interface="org.bluez.obex.Manager",