[sugar] DBus .service files

Dan Williams dcbw
Sun Apr 15 13:23:05 EDT 2007


On Sun, 2007-04-15 at 06:24 -0400, Noah Kantrowitz wrote:
> 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

Don't do this.  There have been a couple fixes since late last week to
make this all work.  First, 'git pull' in sugar-jhbuild.  Second,
"./sugar-jhbuild buildone -a telepathy-python".  That should make this
stuff just work.

A fix was pushed to tp-python last week that allows it to find the
service managers using XDG_DATA_DIR rather than hardcoding the search
list.  A further fix was put into sugar-jhbuild to point the session
DBus daemon that sugar spawns to the dbus service directories inside
sugar-jhbuild rather than the local system.

Dan

> /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
> 
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar




More information about the Sugar-devel mailing list