services: colord: Deprecate 'colord-service' procedure.

* gnu/services/desktop.scm (colord-service-type)[default-value]: New field.
(colord-service): Define with 'define-deprecated'.
(%desktop-services): Use 'colord-service-type' instead of 'colord-service'.
* doc/guix.texi (Desktop Services): Adjust accordingly.
This commit is contained in:
Ludovic Courtès 2019-10-29 23:26:37 +01:00
parent ed45fa64ba
commit 5afa23e180
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
2 changed files with 7 additions and 4 deletions

View file

@ -15530,8 +15530,9 @@ notifications and ways to mount/unmount disks. Programs that talk to UDisks
include the @command{udisksctl} command, part of UDisks, and GNOME Disks. include the @command{udisksctl} command, part of UDisks, and GNOME Disks.
@end deffn @end deffn
@deffn {Scheme Procedure} colord-service [#:colord @var{colord}] @deffn {Scheme Variable} colord-service-type
Return a service that runs @command{colord}, a system service with a D-Bus This is the type of the service that runs @command{colord}, a system
service with a D-Bus
interface to manage the color profiles of input and output devices such as interface to manage the color profiles of input and output devices such as
screens and scanners. It is notably used by the GNOME Color Manager graphical screens and scanners. It is notably used by the GNOME Color Manager graphical
tool. See @uref{https://www.freedesktop.org/software/colord/, the colord web tool. See @uref{https://www.freedesktop.org/software/colord/, the colord web

View file

@ -514,12 +514,14 @@ Users need to be in the @code{lp} group to access the D-Bus service.
;; It provides polkit "actions". ;; It provides polkit "actions".
(service-extension polkit-service-type list))) (service-extension polkit-service-type list)))
(default-value colord)
(description (description
"Run @command{colord}, a system service with a D-Bus "Run @command{colord}, a system service with a D-Bus
interface to manage the color profiles of input and output devices such as interface to manage the color profiles of input and output devices such as
screens and scanners."))) screens and scanners.")))
(define* (colord-service #:key (colord colord)) (define-deprecated (colord-service #:key (colord colord))
colord-service-type
"Return a service that runs @command{colord}, a system service with a D-Bus "Return a service that runs @command{colord}, a system service with a D-Bus
interface to manage the color profiles of input and output devices such as interface to manage the color profiles of input and output devices such as
screens and scanners. It is notably used by the GNOME Color Manager graphical screens and scanners. It is notably used by the GNOME Color Manager graphical
@ -1094,7 +1096,7 @@ dispatches events from it.")))
(service upower-service-type) (service upower-service-type)
(accountsservice-service) (accountsservice-service)
(service cups-pk-helper-service-type) (service cups-pk-helper-service-type)
(colord-service) (service colord-service-type)
(geoclue-service) (geoclue-service)
(service polkit-service-type) (service polkit-service-type)
(elogind-service) (elogind-service)