I'm not sure that the Ubuntu change about /bin/eject is needed but the following patch does:
1) factorize the killall in a daemon_running function.
2) if gnome-setting is running assume it take care of eject/load cd.
This one need a patched /bin/eject because on my Macs ioctl always return EIO and eject -T doesn't try to close the CD.
Also need to use eject -T as cmd in gnome-setting. cf bug #37785
3) don't close the drive just after ejecting it with /bin/eject
I'm not sure that the Ubuntu change about /bin/eject is needed but the following patch does:
1) factorize the killall in a daemon_running function.
2) if gnome-setting is running assume it take care of eject/load cd.
This one need a patched /bin/eject because on my Macs ioctl always return EIO and eject -T doesn't try to close the CD.
Also need to use eject -T as cmd in gnome-setting. cf bug #37785
3) don't close the drive just after ejecting it with /bin/eject