[karmic] PTP devices not auto-unmounting on USB disconnect

Bug #399320 reported by Chris Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gvfs
Fix Released
Medium
gvfs (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: gvfs

I have an iPhone 3G which I connect via USB to charge:

Bus 001 Device 009: ID 05ac:1292 Apple, Inc. iPhone 3G

The device presents a PTP interface, so each time I connect it I get prompted to open F-Spot with buttons for OK, Cancel and Unmount.
If I choose Cancel the device is "mounted" with the name "iPhone", which is presumably correct behaviour, but when I disconnect the USB cable an entry remains in the Places menu (although underneath the "Network" entry, not underneath the "Computer" entry where the "iPhone" entry is created) named:

Digital Camera (usb:000,007)

This happens each time I disconnect the device, so over the course of a day I build up quite a few bogus entries.

Presumably the gvfs mount should be completely removed on USB disconnect?

ProblemType: Bug
Architecture: amd64
Date: Tue Jul 14 15:11:05 2009
DistroRelease: Ubuntu 9.10
Package: gvfs 1.3.1-0ubuntu3
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-2.17-generic
SourcePackage: gvfs
Uname: Linux 2.6.31-2-generic x86_64

Revision history for this message
Chris Jones (cmsj) wrote :
Revision history for this message
Chris Jones (cmsj) wrote :

[15:11] < pitti> could be my bug, I recently did the porting to gudev; can you please
                 assign it to me?

Changed in gvfs (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

Right, I can reproduce this.

Changed in gvfs (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Martin Pitt (pitti)
Changed in gvfs (Ubuntu):
importance: Low → High
Changed in gvfs:
status: Unknown → New
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed, and updated patch sent to upstream bug tracker.

Changed in gvfs (Ubuntu):
status: Triaged → Fix Committed
Changed in gvfs:
status: New → Unknown
Changed in gvfs:
status: Unknown → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gvfs - 1.3.2-0ubuntu2

---------------
gvfs (1.3.2-0ubuntu2) karmic; urgency=low

  * 02-port-gphoto2-backend-and-monitor-to-gudev.patch: Don't use
    g_udev_device_get_property_as_int(), since it interprets a number like
    "018" (as DEVNUM might look like) as octal number. Use atoi() to force
    decimal. This fixes the correct detection of USB bus and device number,
    and thus restores proper names and automatic unmounting. (LP: #399320)

 -- Martin Pitt <email address hidden> Thu, 16 Jul 2009 18:40:06 +0200

Changed in gvfs (Ubuntu):
status: Fix Committed → Fix Released
Changed in gvfs:
importance: Unknown → Medium
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.