Comment 10 for bug 36196

Revision history for this message
Javier Martin (Habbit) (habbit) wrote : Re: .wav sounds when I move the icon or send it to trash

This still happens on the last amd64 Hardy, and not only with wav files: after converting some mp3 to oggs, I was deleting the original files, and my mouse stuck over one of them, which started autoplaying. I proceeded to send them to the trash nevertheless, but the file under the mouse kept playing even though it had disappeared from the Desktop.

Now, I don't think the solution would be related to "stopping playback when the handle is no longer valid": as the file is only moved to a folder in the same FS, the file handle is still valid. In fact, iIrc, the actual deletion would not be possible if it invalidated the file handle. Maybe Nautilus should just check that all the files it's going to move to the trash have no open handles, and if they do, pop up a dialog like: "The file 'music.ogg' is in use by the following programs: totem, ogg123. Do you want to try moving it to the Trash anyway?"