Bug 97725 - Konqueror prevents me from unmounting a device
Summary: Konqueror prevents me from unmounting a device
Status: CLOSED DUPLICATE of bug 78322
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 99138 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-23 17:25 UTC by Lars Janssen
Modified: 2009-01-02 20:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Janssen 2005-01-23 17:25:22 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Gentoo Packages

To see this in action try this:

1. Right-click desktop -> Create New -> Device -> Hard Disk Device
2. Change device to something you're allowed to mount/unmount (e.g. /mnt/usbdrive)
3. Click OK
4. Connect the device and click the new device icon.
5. Browse the files in Konqueror but don't open any.
6. Close the Konqueror window.
7. Right-click the icon and select Unmount.

This results in an error:

Could not umount device

umount: /mnt/usbdrive: device is busy
umount: /mnt/usbdrive: device is busy

KDE obviously can't control other processes, but it would be a huge usability improvement if closing a Konqueror window caused KDE to:

1. Check it's not using that device (e.g. a file copy operation, probably shown in a progress bar somewhere)
2. If it's not in use, close all file handles that arose from the browsing process

As a bonus it should try to be a bit more user friendly in cases where it's not directly responsible:

3. If the user has launched a file in some external app (e.g. mplayer) then it would be nice to say something more user friendly than the umount error like 'Please close any applications/files from the device'.

4. If possible, it could offer the user to 'list processes using this device'.

5. If the other processes are participating KDE apps it could be more specific and ask stuff like "Kaffeine is using a file from 'USB Drive'. Click 'Close file' if you still want to unmount it."  with options "Close file" / "Cancel".

Well some of this is being a bit hopeful but getting Konqueror to lay off all files after I close it would solve 90% of problems. ;-)
Comment 1 yfh2 2005-01-29 16:12:48 UTC
Same with me on KDE 3.3.2 and Gentoo (gcc 3.3.5)
(I'm wondering if Lars has not mistyped his KDE version)

Additional information :

When trying to unmount we get :
"umount: /mnt/usbdrive: device is busy"

"lsof /mnt/usbdribe" results in showing a konqueror process

COMMAND     PID USER   FD   TYPE DEVICE SIZE NODE NAME
konqueror 13779   xx  128r   DIR   3,65 4096    2 /mnt/usbdrive

This process is the process that was controlling the konqueror window.
For some reason, it is still around while the window is closed
Comment 2 Martin Koller 2005-02-15 22:33:16 UTC
*** Bug 99138 has been marked as a duplicate of this bug. ***
Comment 3 Martin Koller 2005-02-15 22:50:54 UTC

*** This bug has been marked as a duplicate of 78322 ***
Comment 4 FiNeX 2009-01-02 20:29:54 UTC
Bug closed. Kdesktop is no more mantained.