After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 507077 - opens two camera windows if camera supports both PtP and mass-storage
opens two camera windows if camera supports both PtP and mass-storage
Status: RESOLVED OBSOLETE
Product: gnome-volume-manager
Classification: Deprecated
Component: general
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Gnome volume manager maintainers
Gnome volume manager maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-03 18:16 UTC by Martin Pitt
Modified: 2009-04-30 05:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Martin Pitt 2008-01-03 18:16:13 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
Comment 1 Martin Pitt 2009-04-30 05:41:01 UTC
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.