System and Session Bus

John (J5) Palmieri johnp at redhat.com
Wed Mar 22 13:11:49 PST 2006


On Mon, 2006-03-20 at 18:55 +0100, Oliver Frommel wrote:
> > 
> > Not the text editor maybe, but:
> > > - most sound software (USB audio and midi devices)
> > > - software for digital cameras
> > > - video editing software (IEEE1394)
> > >
> > > In these cases I would connect the application to the system bus
> > > and register them for events of the appropriate devices of the
> > > Hal service. Additionally I would have to connect to the
> > > session bus to make the applications scriptable or exchange
> > > data with cooperating applications.
> > 
> > 
> > Yes but there exists libhal which is a library that abstracts out
> > communication with hal trough DBus for the API user, so there is no need to
> > connect to the session bus by yourself; instead you can make use of libhal,
> > and don't need to deal with DBus directly at all there. There is also
> > libhal-storage, which is a separate library with an even simpler interface
> > since storage handling is a very common use case when using HAL.
> 
> That's interesting. From what I read I figured it was the
> other way round: that you make use of D-Bus to access HAL.

You do, but libhal abstracts all of that.  It should also be noted that
libhal uses synchronous calls which is not always the best way to code a
GUI applications.  

-- 
John (J5) Palmieri <johnp at redhat.com>



More information about the dbus mailing list