udisks replacement for the HAL EjectPressed signal?

Martin Pitt martin.pitt at ubuntu.com
Fri Jan 15 02:45:58 PST 2010

Hey Benjamin,

Benjamin K. Stuhl [2010-01-14 18:48 -0700]:
> there doesn't seem to be a replacement for HAL's EjectPressed signal
> for CD/DVD drives.

GNOME has indeed the same problem.

As Kay already explained, we changed dk-disks to unlock CDs after
mounting [1] instead, which in nowaday's systems gives a pretty
sensible behaviour. 

The only problem with that is that it's not sufficient, since the next
open() on the device will lock it again (which happens on e. g. DVD
video playback). Therefore we really need to disable the default
locking behaviour in the kernel (/proc/sys/dev/cdrom/lock).


[1] https://bugs.freedesktop.org/show_bug.cgi?id=24052

Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

More information about the devkit-devel mailing list