Skip to content
Commit 5a5cb823 authored by Nicholas Little's avatar Nicholas Little Committed by Andrés G. Aragoneses
Browse files

Hardware: Add DeviceChanged signal for Dap.Mtp (bgo#729438)



To use an MTP device, we must unmount it and release the connection that
Gvfs makes. Prior to this patch, banshee considered two possible device
events, added and removed so unmounts had to be covered by the latter
case, causing MTP devices to be unmapped as they were being configured.

This patch allows the state transition to occur with the assumption that
the device is still physically present and allows devices which don't
present a Mount in their VolumeAddedArgs to be recognised when their
Mounts do become available. This has the added benefit that further down
the line, we can add sources for yet-to-be-configured devices providing
the user with setup or error handling instructions.

As a test: without this patch, a Nexus7 device would not be recognized
by Banshee when connecting it to a laptop running Ubuntu 14.04.

Signed-off-by: default avatarAndrés G. Aragoneses <knocte@gmail.com>
parent 73691ef0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment