udisks replacement for the HAL EjectPressed signal?

Maxim Levitsky maximlevitsky at gmail.com
Fri Jan 15 11:33:20 PST 2010


On Fri, 2010-01-15 at 11:45 +0100, Martin Pitt wrote: 
> 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).
Exactly.

I think that default is indeed wrong.

I think that if an application needs to lock the tray, then it should
explicitly ask for that (for example a cd recording application).

The current behavier is enough for me because I don't use CD/DVDs that
contain anything but standard filesystem data.
But for anybody that plays DVD, this is real problem.


Best regards,
Maxim Levitsky




More information about the devkit-devel mailing list