GNOME Bugzilla – Bug 579645
Don't show error dialog for G_IO_ERROR_ALREADY_MOUNTED
Last modified: 2011-09-09 04:35:54 UTC
nautilus should ignore already-mounted errors and not show an error dialog in this case. +++ This bug was initially created as a clone of Bug #579634 +++ When I plug in my camera, I get two autorun dialogs plus and error dialog. I can understand the two autorun dialogs, since there are two actual stores on the camera (see the attached gphoto2 --summary output), but the error dialog is kinda bad. It says: Unable to mount Kodak Co. Digital Camera Error initializing camera: -60: Could not lock the device So I assume what is happening is that gvfs is mounting the camera when it sees the first storage, and then when it tries to handle the second one, the camera is already mounted. Is there a way for the gphoto backend to notice that the camera is already mounted, and return an already-mounted error in this case ?
Created attachment 132986 [details] [review] patch This patch builds, I haven't actually tested it. Needs testing when gvfs has been fixed to return an already-mounted error in this case.
Doesn't gvfs return already-mounted errors now? (git grep says so...)
The patch is right anyway, so I pushed it to master.