[sugar] DBus .service files

Noah Kantrowitz kantrn at rpi.edu
Sun Apr 15 06:24:54 EDT 2007


Anyone know how to get a system dbus install to see the service files in
~/sugar-jhbuild/build/share/dbus-1/service? I tried putting a
<servicedir> entry in /etc/dbus-1/system.d/sugar.conf, but dbus still
doesn't see it when running sugar-presence-service.:
[olpc at localhost sugar-jhbuild]$ build/bin/sugar-presence-service
/usr/local/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py:49:
Warning: g_object_class_install_property: assertion `pspec->flags &
G_PARAM_WRITABLE' failed
  type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
  File "build/bin/sugar-presence-service", line 47, in <module>
    presenceservice.main(test)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/presenceservice.py",
line 336, in main
    ps = PresenceService(test)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/presenceservice.py",
line 67, in __init__
    self._server_plugin = ServerPlugin(self._registry, self._owner)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/server_plugin.py",
line 111, in __init__
    self._gabble_mgr = registry.GetManager('gabble')
  File
"/home/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/telepathy/client/managerregistry.py",
line 135, in GetManager
    self.services[manager]['objectpath'])
  File
"/home/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/telepathy/client/connmgr.py",
line 32, in __init__
    object = bus.get_object(service_name, object_path)
  File "/usr/local/lib/python2.5/site-packages/dbus/_dbus.py", line 412,
in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/local/lib/python2.5/site-packages/dbus/proxies.py", line
232, in __init__
    _dbus_bindings.UInt32(0))
  File "/usr/local/lib/python2.5/site-packages/dbus/proxies.py", line
171, in __call__
    reply_message =
self._connection.send_message_with_reply_and_block(message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Telepathy.ConnectionManager.gabble was not provided by
any .service files

It does find the service if I copy it to /usr/share/dbus-1/service,
though then I get:
[olpc at localhost sugar-jhbuild]$ build/bin/sugar-presence-service
/usr/local/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py:49:
Warning: g_object_class_install_property: assertion `pspec->flags &
G_PARAM_WRITABLE' failed
  type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
  File "build/bin/sugar-presence-service", line 47, in <module>
    presenceservice.main(test)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/presenceservice.py",
line 336, in main
    ps = PresenceService(test)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/presenceservice.py",
line 67, in __init__
    self._server_plugin = ServerPlugin(self._registry, self._owner)
  File
"/home/olpc/sugar-jhbuild/build/share/sugar/services/presence/server_plugin.py",
line 111, in __init__
    self._gabble_mgr = registry.GetManager('gabble')
  File
"/home/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/telepathy/client/managerregistry.py",
line 135, in GetManager
    self.services[manager]['objectpath'])
  File
"/home/olpc/sugar-jhbuild/build/lib/python2.5/site-packages/telepathy/client/connmgr.py",
line 32, in __init__
    object = bus.get_object(service_name, object_path)
  File "/usr/local/lib/python2.5/site-packages/dbus/_dbus.py", line 412,
in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/local/lib/python2.5/site-packages/dbus/proxies.py", line
232, in __init__
    _dbus_bindings.UInt32(0))
  File "/usr/local/lib/python2.5/site-packages/dbus/proxies.py", line
171, in __call__
    reply_message =
self._connection.send_message_with_reply_and_block(message, timeout)
DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.Telepathy.ConnectionManager.gabble was not provided by
any .service files

Any ideas?

--Noah

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://mailman.laptop.org/pipermail/sugar/attachments/20070415/c45740fb/attachment.pgp 


More information about the Sugar mailing list