me
/
guix
Archived
1
0
Fork 0

services: desktop: Deprecate 'accountsservice-service' procedure.

* doc/guix.texi (Desktop Services): Replace 'accountsservice-service'
with 'accountsservice-service-type'.
* gnu/services/desktop.scm (accountsservice-service): Deprecate procedure.
(desktop-services-for-system): Use accountsservice-service-type.
* gnu/tests/lightdm.scm (minimal-desktop-services): Ditto.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Bruno Victal 2023-02-25 18:58:03 +00:00 committed by Ludovic Courtès
parent ca3a73de3d
commit c3dc13e29c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
3 changed files with 13 additions and 12 deletions

View File

@ -23428,18 +23428,17 @@ Data type representing the configuration of @command{elogind}.
@end table @end table
@end deftp @end deftp
@deffn {Scheme Procedure} accountsservice-service @ @defvar accountsservice-service-type
[#:accountsservice @var{accountsservice}] Type for the service that runs AccountsService, a system service that can
Return a service that runs AccountsService, a system service that can
list available accounts, change their passwords, and so on. list available accounts, change their passwords, and so on.
AccountsService integrates with PolicyKit to enable unprivileged users AccountsService integrates with PolicyKit to enable unprivileged users
to acquire the capability to modify their system configuration. to acquire the capability to modify their system configuration.
@uref{https://www.freedesktop.org/wiki/Software/AccountsService/, the See @url{https://www.freedesktop.org/wiki/Software/AccountsService/,
accountsservice web site} for more information. AccountsService} for more information.
The @var{accountsservice} keyword argument is the @code{accountsservice} The value for this service is a file-like object, by default it is
package to expose as a service. set to @code{accountsservice} (the package object for AccountsService).
@end deffn @end defvar
@deffn {Scheme Procedure} polkit-service @ @deffn {Scheme Procedure} polkit-service @
[#:polkit @var{polkit}] [#:polkit @var{polkit}]

View File

@ -126,7 +126,7 @@
fontconfig-file-system-service fontconfig-file-system-service
accountsservice-service-type accountsservice-service-type
accountsservice-service accountsservice-service ; deprecated
cups-pk-helper-service-type cups-pk-helper-service-type
sane-service-type sane-service-type
@ -1295,7 +1295,9 @@ over D-Bus that can list available accounts, change their passwords, and so
on. AccountsService integrates with PolicyKit to enable unprivileged users to on. AccountsService integrates with PolicyKit to enable unprivileged users to
acquire the capability to modify their system configuration."))) acquire the capability to modify their system configuration.")))
(define* (accountsservice-service #:key (accountsservice accountsservice)) (define-deprecated
(accountsservice-service #:key (accountsservice accountsservice))
accountsservice-service-type
"Return a service that runs AccountsService, a system service that "Return a service that runs AccountsService, a system service that
can list available accounts, change their passwords, and so on. can list available accounts, change their passwords, and so on.
AccountsService integrates with PolicyKit to enable unprivileged users to AccountsService integrates with PolicyKit to enable unprivileged users to
@ -1858,7 +1860,7 @@ applications needing access to be root.")
(service avahi-service-type) (service avahi-service-type)
(udisks-service) (udisks-service)
(service upower-service-type) (service upower-service-type)
(accountsservice-service) (service accountsservice-service-type)
(service cups-pk-helper-service-type) (service cups-pk-helper-service-type)
(service colord-service-type) (service colord-service-type)
(geoclue-service) (geoclue-service)

View File

@ -46,7 +46,7 @@
(define minimal-desktop-services (define minimal-desktop-services
(list polkit-wheel-service (list polkit-wheel-service
(service upower-service-type) (service upower-service-type)
(accountsservice-service) (service accountsservice-service-type)
(service polkit-service-type) (service polkit-service-type)
(service elogind-service-type) (service elogind-service-type)
(dbus-service) (dbus-service)