Unmounting and 'eject' press

Ikke eikke at eikke.com
Mon May 31 08:18:26 PDT 2004

> Only caveat is that is requires MMC-2 drives or higher (all drives
> shipped within the past 3-4 years are MMC-2 compliant), but anyway it is
> now integrated with HAL.

My PC (and its CDROM reader) is 10 years old, so I'll have to code
blindfolded, as a matter of speaking.

> If eject is pressed, while a disc is mounted HAL will emit an
> 'EjectPressed' condition on the HalDevice representing the optical disc.
> In hal-device-manager it looks like this
>  Condition EjectPressed,
>   device=/org/freedesktop/Hal/devices/block_22_0-disc
>   message =  ['EjectPressed', '/udev/hdc']

How do I catch that? In code? I'm very new to this :-$

Greetings, Ikke

hal mailing list
hal at freedesktop.org

More information about the Hal mailing list