Re: [PATCH] eject improvement - Nautilus bugzilla # 151840.



On Sat, 2004-12-04 at 13:55 +0100, Magnus Damm wrote:
> Hello,
> 
> Apple machines tend to miss eject buttons on cdrom-drives. This
> together with some types of media can put the user in a bad situation:
>
> DVD:s
> xine and mplayer both play DVD:s without mounting them. My patches
> makes it possible to eject the DVD media without prior mounting.
> 
> Audio CD:s
> My kernel does not allow me to mount audio CD:s. Without the patches,
> it is impossible to eject an audio CD with nautilus because the media
> is unmountable by the kernel. The user has to start a terminal and use
> the eject command. Not very user friendly. This probably applies to
> all media that is unsupported (not mountable) by the kernel.

The current hal-based code does actually create volumes even for audio
cds, so you can unmount it. But i see the problem.

Btw, how do you "eject" an empty cdrom on the apple machine in osx so
that you can insert a CD?

> The attached patches contain the following changes:
> 
> gnome-vfs: makes it possible to eject unmounted media. bugfixes.
> nautilus: adds right-click eject on removable media.
> 
> The gnome-vfs patch also fixes the following:
> 
> gnome-vfs-volume-ops.c, gnome_vfs_drive_eject():
> current_vol->next should be used instead of current_vol.
> 
> gnome-vfs-volume-ops.c, mount_unmount_thread():
> Memory leak if umount fails but eject succeeds.
> My fix (refuse to eject if umount fails) might conflict with bugzilla #143569

Yes. It seems to conflict. Could you change it so it tries eject even if
the unmount fails? Otherwise the gnome-vfs parts look ok, and we should
get that in.

For the nautilus patch, I didn't try it, but it seems that it adds both
the "eject" and an "unmount" item to the menu. I don't like that, as it
unnecessary exposes the unmount operations for something that doesn't
need it (when do you unmount but not eject a cd?) and makes the menu
larger than necessary.

Also, the nautilus patch totally doesn't apply to the new bonobo-ui less
version of the code.

> Sorry for not producing patches against CVS, but I do not know where
> to checkout from...

http://developer.gnome.org/tools/cvs.html

module "gnome-vfs" and "nautilus".

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a witless dishevelled hairdresser with nothing left to lose. She's a 
provocative tomboy journalist from a family of eight older brothers. They 
fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]