GNOME Bugzilla – Bug 613875
Does not react to gvfs media changes
Last modified: 2010-04-01 12:41:51 UTC
Created attachment 157033 [details] gvfs-mount -oi * Plug in camera (I have a libgphoto2 supported one, not UMS) * gvfs media dialog pops up, select gthumb * I import pictures, and then get to the main screen, which (amongst other things) shows the Canon camera in the sidebar * I switch off the camera, since I'm done with importing * Camera does not go away in the side bar, and clicking on it yields an error. I then noticed that when gthumb is already running when I switch on the camera, it does not appear either. Seems it does not react to hotplug events? It should be pretty obvious, but I attach the gvfs-mount -oi log for reference. I didn't find a --debug switch for gthumb, and it did not print anything meaningful to stderr.
the code to react to media changes is already there, precisely in gthumb/gth-file-source-vfs.c, it just listens to "mounts-changed" events and filters out shadowed mounts.
I can confirm that the camera remains in the folder tree even after being disconnected. - Mike
Created attachment 157053 [details] [review] monitor patch
Michael, your patch didn't work for me, however after connecting to "mount-added" and "mount-removed" as well, it works again. I've applied it to master now, thanks.