Skip to content
  • Nicholas Little's avatar
    Dap/Mtp: Remove unmount, add claim (bgo#731916) · c0cb2536
    Nicholas Little authored and Andrés G. Aragoneses's avatar Andrés G. Aragoneses committed
    We need to unmount MTP devices for banshee to make use of them, this
    causes nautilus to produce error messages in some cases, as described in
    [1].
    
    This patch adds a parameter to DapSource.DeviceInitialize to signal
    whether we should attempt to force the connection to the device (at the
    user's request via the ClaimDapAction) or just make a best attempt.
    
    To facilitate this, DapSource subclasses can now throw
    InvalidDeviceStateException which will allow them to make a claim on a
    device even though they couldn't initialize it. At that point, a new
    type, PotentialSource is mapped, enabling the ClaimDapAction.
    
    [1] https://bugzilla.gnome.org/show_bug.cgi?id=731916
    c0cb2536