Re: [Utopia] [patch] mount/unmount when starting/stopping
- From: Jerry Haltom <jhaltom feedbackplusinc com>
- To: Sean Middleditch <elanthis awesomeplay com>
- Cc: David Zeuthen <david fubar dk>, utopia-list gnome org
- Subject: Re: [Utopia] [patch] mount/unmount when starting/stopping
- Date: Tue, 17 Aug 2004 15:54:04 -0500
Here's the use case I would expect:
User inserts a CD ROM, Nautilus pops it open. User opens a text file
from the CD. User presses eject button on the CD drive.
HAL propigates EjectPressed to GVM. GVM attempts to umount the drive,
not lazy. If umount succeeds, device is ejected. If the umount fails,
because the device is in use, GVM does not eject the device. Instead,
broadcasts DevicePendingEject to DBUS (I just made this up). Nautilus
receives this signal and closes it's browser window. The text editor of
course can't.
GVM again attempts to umount the device. This time, it may succeed. If
it doesn't, GVM pops up a dialog box. "You attempted to eject the media
in your CD ROM drive. However, other applications are currently using
files or data on the device. Please close these other applications and
try again." At this point GVM gives up.
At some point, perhaps there will be a way to send a signal to ALL apps
that have a given file open telling them to close it. This sounds like a
fun project. ;)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]