Being notified about CD/DVD media
John (J5) Palmieri
johnp at redhat.com
Thu Apr 7 17:16:19 UTC 2005
On Thu, 2005-04-07 at 19:06 +0200, Davide Bolcioni wrote:
> John (J5) Palmieri wrote:
> > On Thu, 2005-04-07 at 18:42 +0200, Davide Bolcioni wrote:
> >>
> >>My guess is that I should look at either HAL or D-BUS, but I would like
> >>to hear about the pros and cons of each solution: as far as I know, HAL
> >>feeds D-BUS but the latter is mainly intended for desktop applications,
> >>so in my use case might not even be there.
> >
> > D-BUS is for use from (right above) the kernel up to the Desktop. You
> > can use it for system services also. It is why we have a system bus in
> > the first place.
>
> Well, the D-BUS pages at freedesktop.org seem a bit thin on
> documentation. I could start listening on the system bus FIFO, but how
> am I supposed to know what to listen for ?
>
D-Bus is just a communications bus. You need to look at the HAL specs
to see how to listen for hardware changes. Take a look at
gnome-volume-manager which handles CD's/DVD's in a users session. Just
note that the HAL and D-Bus in FC3 are significantly different than the
ones going into FC4 because of API overhauls.
If you have any other questions about HAL and D-Bus please post their
respective lists.
--
John (J5) Palmieri
Associate Software Engineer
Desktop Group
Red Hat, Inc.
Blog: http://martianrock.com
More information about the fedora-devel-list
mailing list