Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

{SOLVED} Cannot open html file from mtp device

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
babcat
Posts: 28
Joined: 2018-04-11 09:22

{SOLVED} Cannot open html file from mtp device

#1 Post by babcat »

Hello, the device is an android phone, I can mount / unmount from thunar file manager, browse folders, read, write, but cannot open any *.html, neither with geany nor with firefox. Message from Firefox (Iceweasel):
The address wasn't understood. Iceweasel doesn't know how to open this address, because one of the following protocols (mtp) isn't associated with any program or is not allowed in this context.You might need to install other software to open this address.

Geany opens an untitled document and returns nothing.

Code: Select all

baba@debian:~$ mtp-detect 
Unable to open ~/.mtpz-data for reading, MTPZ disabled.
libmtp version: 1.1.8

Listing raw device(s)
Device 0 (VID=17ef and PID=2008) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   17ef:2008 @ bus 5, dev 5
Attempting to connect device(s)
Android device detected, assigning default bug flags
Last edited by babcat on 2018-05-24 07:43, edited 1 time in total.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot open html file from mtp device

#2 Post by debiman »

It's because you're using gvfs, and firefox indeed cannot understand the path gvfs offers.
you can always try to tell firefox to treat gvfs paths as normal local files, but i'm not sure if that's even possible.

MTP is not intended to be an extension to your local filesystem, it's really designed to transfer files to/from your device, no more.

you might want to look into using mtpfs or jmtpfs instead.
https://wiki.debian.org/mtp

User avatar
babcat
Posts: 28
Joined: 2018-04-11 09:22

Re: Cannot open html file from mtp device

#3 Post by babcat »

Issue was solved by upgrading jmtpfs. I mount with jmtpfs -device=<busnum>,<devnum> /mount/point
unmount with fusermount -u /mount/point

And the html files open fine.

Post Reply