GNOME Bugzilla – Bug 507077
opens two camera windows if camera supports both PtP and mass-storage
Last modified: 2009-04-30 05:41:01 UTC
https://bugs.launchpad.net/bugs/8986, comment 5 onward, a user with a Panasonic Lumix FZ5 reports that he gets two "do you want to import pictures" dialogs when he plugs in his camera. The reason is that the camera exposes both a libgphoto2 (PtP) and a mass-storage interface. See http://launchpadlibrarian.net/11120525/hal.txt http://launchpadlibrarian.net/11137303/gvm.log for debugging details. udi = '/org/freedesktop/Hal/devices/usb_device_4da_2372_noserial_if0' camera.access_method = 'ptp' (string) camera.libgphoto2.name = 'Panasonic Lumix FZ5' (string) camera.libgphoto2.support = true (bool) info.capabilities = {'camera', 'camera', 'camera', 'camera'} (string list) info.linux.driver = 'usb-storage' (string) The last property could help here: if a ptp interface uses the usb-storage driver, it should be ignored by g-v-m. This would be a pretty Linux specific workaround, though, but I don't see how this could be done more robustly? One could check if there is a peer interface which is a volume by traversing the parents and their children, but this is just subject to a race condition. Any other idea? Thank you, Martin
Let's close this, nobody uses g-c-m any more, and it's unmaintained. This issue is fixed much more elegantly with nautilus/gvfs nowadays.