udisks replacement for the HAL EjectPressed signal?
martin.pitt at ubuntu.com
Fri Jan 15 02:45:58 PST 2010
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  instead, which in nowaday's systems gives a pretty
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).
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the devkit-devel