From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:40307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goRnE-0004Xe-J0 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goRnD-0003Kw-N1 for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goRnD-0003Ko-JE for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goRnD-00028P-Ej for guix-patches@gnu.org; Tue, 29 Jan 2019 06:43:03 -0500 Subject: [bug#34240] [PATCH 2/5] services: Add cups-pk-helper. Resent-Message-ID: From: Christopher Baines Date: Tue, 29 Jan 2019 11:42:39 +0000 Message-Id: <20190129114242.32481-2-mail@cbaines.net> In-Reply-To: <20190129114242.32481-1-mail@cbaines.net> References: <87a7jjr8y3.fsf@cbaines.net> <20190129114242.32481-1-mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34240@debbugs.gnu.org This service integrates cups and PolicyKit. The gnome-control-center printing section uses this functionality. * gnu/sevices/desktop.scm (cups-pk-helper-service-type): New variable. (%desktop-services): Add the cups-pk-helper service. --- gnu/services/desktop.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index fbeabf1162..a93fa3c356 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -39,6 +39,7 @@ #:use-module (gnu system pam) #:use-module (gnu packages glib) #:use-module (gnu packages admin) + #:use-module (gnu packages cups) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gnome) #:use-module (gnu packages xfce) @@ -801,6 +802,21 @@ accountsservice web site} for more information." (service accountsservice-service-type accountsservice)) +;;; +;;; cups-pk-helper service. +;;; + +(define cups-pk-helper-service-type + (service-type + (name 'cups-pk-helper) + (description + "PolicyKit helper to configure CUPS with fine-grained privileges.") + (extensions + (list (service-extension dbus-root-service-type list) + (service-extension polkit-service-type list))) + (default-value cups-pk-helper))) + + ;;; ;;; GNOME desktop service. ;;; @@ -990,6 +1006,7 @@ as expected."))) (udisks-service) (upower-service) (accountsservice-service) + (service cups-pk-helper-service-type) (colord-service) (geoclue-service) (service polkit-service-type) -- 2.20.1