From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Package requests: Udisks helpers (udiskie, udevil) Date: Sun, 01 Apr 2018 12:43:29 +0530 Message-ID: <87o9j3flgm.fsf@gmail.com> References: <87sh8j45mb.fsf@gmail.com> <87muyrdw3s.fsf@elephly.net> <87r2o341wd.fsf@gmail.com> <87lgea41ml.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f2XBJ-0001fr-K9 for help-guix@gnu.org; Sun, 01 Apr 2018 03:13:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f2XBG-0007ph-Ft for help-guix@gnu.org; Sun, 01 Apr 2018 03:13:37 -0400 Received: from mail-pl0-x236.google.com ([2607:f8b0:400e:c01::236]:38034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f2XBG-0007ow-0I for help-guix@gnu.org; Sun, 01 Apr 2018 03:13:34 -0400 Received: by mail-pl0-x236.google.com with SMTP id m22-v6so2395934pls.5 for ; Sun, 01 Apr 2018 00:13:33 -0700 (PDT) In-reply-to: <87lgea41ml.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Chris Marusich Cc: help-guix --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Chris Marusich writes: >> Some udev rules might be enough though. > > That could very well be true! I don't know a lot about how the various > desktop environments like GNOME auto-mount removable storage devices, > but I'd be surprised if you couldn't whip something up with udev rules. Thinking about it, I don't think that would work. I haven't tested the following, but let's consider the Udev rule: (define %automount-udev-rule (udev-rule "90-automount.rules" (string-append "KERNEL=3D\"sd[a-z][0-9]\", ACTION=3D=3D\"add\", SUBSYST= EM=3D=3D\"usb\", " "RUN+=3D\"/run/current-system/profile/bin/udisksctl moun= t -b /dev/%k\""))) It would mount the drive as root, not for the current user. It's possible to mount the drives for every one though: (define %automount-udev-rule (udev-rule "90-automount.rules" (string-append "KERNEL=3D\"sd[a-z][0-9]\", ACTION=3D=3D\"add\", SUBSYST= EM=3D=3D\"usb\", " "ENV{UDISKS_FILESYSTEM_SHARED}=3D\"1\"," "RUN+=3D\"/run/current-system/profile/bin/udisksctl moun= t -b /dev/%k\""))) Conclusion: a udev rule might solve part of the problem (auto-mounting) but it does not allow for per-user mount points. In the end, udiskie might be the better option. What do you think? =2D-=20 Pierre Neidhardt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrAhpkACgkQm9z0l6S7 zH93XAgAjDhL4+S62DtjLI5nHDjHe7AySNCseXq0rJiVTVs43JZlV6iu1V1HudOY vIXvMmkTUKzJdaTD94bjP3LP477sC88Hte21A7pfc8zxLKtVO6bn6zN06Fjr3o0w a6xqaA2kKsF7QxLJtNlrsFKxiB+4DWYfrQVnQYgSe8tdr7KT5/4e/kxXG/7ieb3e mAl1nrLwFwJIQXFrHTU3opzaIoN6RZ3kd26M8g/2K+Hv+glxMrcPhYJLkAyXyHum x2axYcYywxBe40+q5jKEMgu4mKNCaKnhNsMf+nPfY5pisnOFkoKBX/SFCxbyu2SW J1c6sPITsbXH9t6CXjYHBl4K6Cnzjw== =lSzI -----END PGP SIGNATURE----- --=-=-=--