Cannot open files with this protocol (mtp) error on Android Phone

Bug #1650394 reported by Özgür BASKIN on 2016-12-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
In Progress
Jeremy Wootten

Bug Description

After I connect my phone with MTP protocol pantheon-files fails to create thumbnails for files (pdf, jpg, png etc.) and when I try to open one of the files (lets say pdf) it gives me "Cannot open files with this protocol (mtp)" error.

- Connect your android phone and chose MTP form your phone,
- open pantheon-files and mount your phone.
- Browse your files and try to open one file from your phone directory.

OS: Loki 4.0
Phone: Android 6.0.1

pantheon-files amd64
libmtp-common 1.1.10-2ubuntu1 all
libmtp-runtime 1.1.10-2ubuntu1 amd64
libmtp9:amd64 1.1.10-2ubuntu1 amd64

description: updated
description: updated
Jeremy Wootten (jeremywootten) wrote :

This is the expected behaviour at present because of limitations in the gvfs-mtp backend, but it does need to be fixed if possible.

Changed in pantheon-files:
status: New → Confirmed
Cody Garver (codygarver) on 2017-02-26
Changed in pantheon-files:
assignee: nobody → Jeremy Wootten (jeremywootten)
importance: Undecided → Medium
milestone: none → juno-beta1
status: Confirmed → In Progress
Özgür BASKIN (ozgur-baskin) wrote :

Any news?

Jeremy Wootten (jeremywootten) wrote :

My Android phone gives the options of Charging, File Transfer (mtp) or Photo Transfer (ptp) when the USB is plugged but I have not found a (gnome/gtk) file manager that can show thumbnails over mtp so I guess this is not implemented upstream (yet).

However, other filemanagers can launch the photos in a local photo viewer so I guess the "cannot open" message is no longer needed.

The Files project is not transferred to here:

A new issue related to the opening of image files over mtp should be created.

Jeremy Wootten (jeremywootten) wrote :

Actually, I find that if I chooser "Photo Transfer (ptp)" then the images are thumbnailed and launched as expected. Given that, I am not sure that there is a need to do it over mtp.

Jeremy Wootten (jeremywootten) wrote :

Hmm, actually I find that if I remove the restrictions on mtp in the Files code to allow browsing, streaming and opening I find that thumbnailing and launching works perfectly (!). So I guess it has been fixed upstream after all. The only problem is that the pathbar does not display the path properly for mtp uris but that should be easy to fix.

Özgür BASKIN (ozgur-baskin) wrote :

Perfect news. Thank you for taking care of it.

After fixing it, you can close this too I guess:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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