unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Let non-root users use MTP devices
@ 2016-12-26  0:59 Chris Marusich
  2016-12-26  0:59 ` [PATCH 1/2] gnu: libmtp: Grant "audio" group access to device files Chris Marusich
  2016-12-26  0:59 ` [PATCH 2/2] services: desktop: Use libmtp udev rules Chris Marusich
  0 siblings, 2 replies; 14+ messages in thread
From: Chris Marusich @ 2016-12-26  0:59 UTC (permalink / raw)
  To: guix-devel

These small patches enable easier MTP file transfer for devices, such as
Android phones, on GuixSD.

Previously, you had to run a program as root (e.g., "sudo gmtp") to do this,
and the MTP backend for gvfs was not functioning properly (i.e., you could not
use a program like Nautilus to transfer files).  This was because we were
missing some udev rules that the libmtp package provides.  These patches add
those rules and configure libmtp so that the rules will grant the "audio"
group access to the MTP-related device files.  After these patches are
applied, any user in the "audio" group will be able to use tools like "gmtp"
without running them as root, and the MTP backend for gvfs will "just work"
for any user who is in the "audio" group.  I've verified that this works in
GNOME and also Xfce; I was successful in transferring files to an Android
device using drag-and-drop via Nautilus.

Note that in order to use a program like "gmtp," you'll probably need to make
sure no other programs (e.g., "gvfs-mtp-volume-monitor") are using the device
at the same time.  Apparently, when using MTP, only one process can use a
device at a time.  For details, please refer to the documentation in the
libmtp source.

-- 
Chris

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-12-30  0:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-26  0:59 Let non-root users use MTP devices Chris Marusich
2016-12-26  0:59 ` [PATCH 1/2] gnu: libmtp: Grant "audio" group access to device files Chris Marusich
2016-12-26 13:02   ` Ricardo Wurmus
2016-12-28 11:18     ` Chris Marusich
2016-12-29  9:01       ` Let non-root users use MTP devices (Attempt #2) Chris Marusich
2016-12-29  9:01         ` [PATCH 1/2] gnu: elogind: Enable ACL support Chris Marusich
2016-12-29  9:01         ` [PATCH 2/2] services: desktop: Use libmtp udev rules Chris Marusich
2016-12-29 22:37           ` Ludovic Courtès
2016-12-29 23:57             ` Chris Marusich
2016-12-29 10:15         ` Let non-root users use MTP devices (Attempt #2) Chris Marusich
2016-12-29 22:48           ` Ludovic Courtès
2016-12-30  0:41             ` Chris Marusich
2016-12-29 22:44         ` Ludovic Courtès
2016-12-26  0:59 ` [PATCH 2/2] services: desktop: Use libmtp udev rules Chris Marusich

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).