MTP: Difference between revisions
imported>Symphorien how to mount an mtp device with jmtpfs and gvfs |
imported>IgorM m Fixed link |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
The Media Transfer Protocol (MTP) can be used to transfer media files to and from many mobile phones (most Windows Phone and [[Android]] | The Media Transfer Protocol (MTP) can be used to transfer media files to and from many mobile phones (most Windows Phone and [[Android]] devices) and media players (e.g. Creative Zen). | ||
MTP devices are usually mounted via [[FUSE]] and then appear as a more or less regular file system. | MTP devices are usually mounted via [[FUSE]] and then appear as a more or less regular file system. | ||
| Line 6: | Line 6: | ||
{{Tip|You usually need to unlock an Android device | {{Tip|You usually need to unlock and change the connection mode to "File Transfer" for an Android device to appear as an MTP device}} | ||
=== jmtpfs === | === jmtpfs === | ||
| Line 24: | Line 24: | ||
=== gvfs === | === gvfs === | ||
This method apparently only works well with gtk/gnome-based desktops like [[Gnome Shell]] or [[Xfce]]. | |||
On NixOS, file managers that support gvfs, such as PCManFM, can mount mtp devices by adding this to <code>configuration.nix</code>: | |||
<syntaxhighlight lang=nix> | |||
{ | |||
services.gvfs.enable = true; | |||
} | |||
</syntaxhighlight> | |||
The above should suffice, but there also exists a more manual method. This method apparently only works well with gtk/gnome-based desktops like [[GNOME|Gnome Shell]] or [[Xfce]]. | |||
It relies on having <code>gvfs</code> listed in the environment variable <code>GIO_EXTRA_MODULES</code>, for example: | It relies on having <code>gvfs</code> listed in the environment variable <code>GIO_EXTRA_MODULES</code>, for example: | ||
| Line 44: | Line 53: | ||
The device will appear in your favorite file manager. | The device will appear in your favorite file manager. | ||
[[Category:Applications]] | |||