From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id INuQLYfaI2ClIAAA0tVLHw (envelope-from ) for ; Wed, 10 Feb 2021 13:07:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GPaBKYfaI2AiSgAAB5/wlQ (envelope-from ) for ; Wed, 10 Feb 2021 13:07:19 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F066894038E for ; Wed, 10 Feb 2021 13:07:18 +0000 (UTC) Received: from localhost ([::1]:57924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9pDB-00079C-NH for larch@yhetil.org; Wed, 10 Feb 2021 08:07:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCx-00078o-E2 for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9pCw-0001ho-DM for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9pCw-0007qz-7W for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46421] [PATCH] doc: Expand sane-service-type documentation. Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Feb 2021 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46421 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46421@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161296239930161 (code B ref -1); Wed, 10 Feb 2021 13:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 13:06:39 +0000 Received: from localhost ([127.0.0.1]:55708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9pCZ-0007qO-Cr for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:06:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:59328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9pCV-0007qF-OH for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:06:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCV-000729-JW for guix-patches@gnu.org; Wed, 10 Feb 2021 08:06:35 -0500 Received: from mail-40141.protonmail.ch ([185.70.40.141]:20119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCP-0001US-5Y for guix-patches@gnu.org; Wed, 10 Feb 2021 08:06:35 -0500 Date: Wed, 10 Feb 2021 13:06:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612962386; bh=jWZAXBTooHMeva6hHNYmrPMrwTcXl71/NWlOgNQV084=; h=Date:To:From:Reply-To:Subject:From; b=VWIh/G4Sos1X9h03/5iPkhRJw3Jt8s2+/jzPgoEETUhsk2Cj6yQFkk5UQ+wDnrKd0 Fw4Xx7TXs2A6BfvzrJ9/KH0MI1kAvk5CN/T1yaIcI7hi8knZpjiYC75ekMLUm9+pzQ yQKZFDYVFu1l+RdxJ57n0M72Wbe17kCl6Co0cCL4= Message-ID: <0gD73ixFsOhUAMwFx1BNSaMobM8_HaW-6phCSsevky7RFNuTBUNFHeJ4GWM18_9iSpnAMVvROV6ryF9W2v_SllH414yzizr42i6-7GYlEvY=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.141; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: raid5atemyhomework X-ACL-Warn: , raid5atemyhomework via Guix-patches From: raid5atemyhomework via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b="VWIh/G4S"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: F066894038E X-Spam-Score: -2.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: wWX0Y4gc85BP SANE documentation in `info guix` is lacking, this patch gives decent docum= entation about it. PLEASE merge soon, it's not like this is code. >From e0728dbab926e4670ec067865053331a02d5d171 Mon Sep 17 00:00:00 2001 From: raid5atemyhomework Date: Wed, 10 Feb 2021 21:01:23 +0800 Subject: [PATCH] doc: Expand sane-service-type documentation. * doc/guix.texi (sane-service-type): Move from between documentation about geoclue, expand slightly. (sane-backends-minimal): New description. (sane-backends): New description, new example. --- doc/guix.texi | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 7d18703283..7b9145aa06 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19178,6 +19178,46 @@ tool. See @uref{https://www.freedesktop.org/softw= are/colord/, the colord web site} for more information. @end deffn +@cindex scanner access +@defvr {Scheme Variable} sane-service-type +This service provides access to scanners @i{via} +@uref{http://www.sane-project.org, SANE} by installing the necessary udev +rules. This service is already included in @code{%desktop-services} with +@code{sane-backends-minimal} configured. +@end defvr + +@defvr {Scheme Variable} sane-backends-minimal +The default package which the @code{sane-service-type} will install, this = will +support many recent scanners out-of-the-box. +@end defvr + +@defvr {Scheme Variable} sane-backends +A package which includes support for all scanners that @code{sane-backends= -minimal} +supports, plus older Hewlett-Packard scanners supported by @code{hplip}. = In order +to use this on a system which uses @code{%desktop-services}, you can use +@code{modify-services} to change the @code{sane-service-type} configuratio= n: + +@lisp +(use-modules (gnu)) +(use-service-modules + ; @dots{} + desktop) +(use-package-modules + ; @dots{} + scanner) + +(operating-system + ;; @dots{} + (services + (append + ;; @dots{} + (modify-services %desktop-services + (sane-service-type _ =3D> sane-backends)))) + ;; @dots{} + ) +@end lisp +@end defvr + @deffn {Scheme Procedure} geoclue-application name [#:allowed? #t] [#:syst= em? #f] [#:users '()] Return a configuration allowing an application to access GeoClue location data. @var{name} is the Desktop ID of the application, without @@ -19189,13 +19229,6 @@ this application is allowed location info access. = An empty users list means that all users are allowed. @end deffn -@cindex scanner access -@deffn {Scheme Procedure} sane-service-type -This service provides access to scanners @i{via} -@uref{http://www.sane-project.org, SANE} by installing the necessary udev -rules. -@end deffn - @defvr {Scheme Variable} %standard-geoclue-applications The standard list of well-known GeoClue application configurations, granting authority to the GNOME date-and-time utility to ask for the -- 2.30.0