Im stalled... :(

David Zeuthen david at fubar.dk
Thu Aug 5 16:50:16 PDT 2004


Hi,

On Fri, 2004-08-06 at 01:23 +0200, Elric Milon wrote:
> Well Im trying to read the messages that Hal generates on dbus...
> on Ipython I'm doing that:
> whirm at 9[~]$ ipython
> Python 2.3.4 (#2, Jul 28 2004, 09:39:34)
> Type "copyright", "credits" or "license" for more information.
> 
> IPython 0.6.0 -- An enhanced Interactive Python.
> ?       -> Introduction to IPython's features.
> @magic  -> Information about IPython's 'magic' @ functions.
> help    -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
> 
> In [1]: import dbus
> 
> In [2]: mybus =dbus.Bus(dbus.Bus.TYPE_SYSTEM)
> 
> In [3]: myservice=mybus.get_service('org.freedesktop.Hal.Manager')
> 

This is wrong; the service is called org.freedesktop.Hal. Granted, D-BUS
can be a bit confusing with services, interfaces and object paths
especially because services and interfaces use the same notation style.

Attached is a tiny python program (that will go in the updated hal spec
which will be out anytime soon) that lists the devices exported by hal
and reacts to changes when devices are added/removed.

Hope this helps,
David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: examply-manager.py
Type: application/x-python
Size: 947 bytes
Desc: not available
Url : http://freedesktop.org/pipermail/dbus/attachments/20040806/5fc281e0/examply-manager.bin


More information about the dbus mailing list