When there's a process attached, I obviously can't attach to it -
Code:
user@n9ne:/opt/dev/bluetooth$ ./simple-agent
Traceback (most recent call last):
File "./simple-agent", line 113, in <module>
adapter.RegisterAgent(path, "DisplayYesNo")
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.AlreadyExists: Agent already exists
If I kill the pid that's holding it - which is actually the bluetooth daemon then it destroys the agent service and nothing can access it?
Code:
Traceback (most recent call last):
File "./simple-agent", line 87, in <module>
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 183, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/pymodules/python2.5/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
This works just fine on an x86/64 box with blueZ 4.69 but not on Maemo with 4.60?