[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/23: services: desktop: Deprecate 'udisks-service' procedure.
From: |
guix-commits |
Subject: |
16/23: services: desktop: Deprecate 'udisks-service' procedure. |
Date: |
Fri, 3 Mar 2023 12:07:26 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e8f161ea11c24b9812d74e6793f5d7f8e789e170
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Sat Feb 25 18:58:05 2023 +0000
services: desktop: Deprecate 'udisks-service' procedure.
* doc/guix.texi (Desktop Services): Replace 'udisks-service' with
'udisks-service-type'.
Document <udisks-configuration>.
* gnu/packages/kde-multimedia.scm (k3b)[description]: Replace
'udisks-service' with 'udisks-service-type'.
* gnu/services/desktop.scm (udisks-service-type): Set default value.
(udisks-service): Deprecate procedure.
(desktop-services-for-system): Use udisks-service-type.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
doc/guix.texi | 21 +++++++++++++++++----
gnu/packages/kde-multimedia.scm | 4 ++--
gnu/services/desktop.scm | 10 ++++++----
3 files changed, 25 insertions(+), 10 deletions(-)
diff --git a/doc/guix.texi b/doc/guix.texi
index 4ff5622ad3..659f451933 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23537,9 +23537,10 @@ Possible values are:
@end table
@end deftp
-@deffn {Scheme Procedure} udisks-service [#:udisks @var{udisks}]
-Return a service for @uref{https://udisks.freedesktop.org/docs/latest/,
-UDisks}, a @dfn{disk management} daemon that provides user interfaces
+@defvar udisks-service-type
+Type for the service that runs
+@uref{https://udisks.freedesktop.org/docs/latest/, UDisks},
+a @dfn{disk management} daemon that provides user interfaces
with notifications and ways to mount/unmount disks. Programs that talk
to UDisks include the @command{udisksctl} command, part of UDisks, and
GNOME Disks. Note that Udisks relies on the @command{mount} command, so
@@ -23547,7 +23548,19 @@ it will only be able to use the file-system utilities
installed in the
system profile. For example if you want to be able to mount NTFS
file-systems in read and write fashion, you'll need to have
@code{ntfs-3g} installed system-wide.
-@end deffn
+
+The value for this service is a @code{<udisks-configuration>} object.
+@end defvar
+
+@deftp {Data Type} udisks-configuration
+Data type representing the configuration for @code{udisks-service-type}.
+
+@table @asis
+@item @code{udisks} (default: @code{udisks}) (type: file-like)
+Package object for UDisks.
+
+@end table
+@end deftp
@defvar colord-service-type
This is the type of the service that runs @command{colord}, a system
diff --git a/gnu/packages/kde-multimedia.scm b/gnu/packages/kde-multimedia.scm
index d635eca26d..e3de6db432 100644
--- a/gnu/packages/kde-multimedia.scm
+++ b/gnu/packages/kde-multimedia.scm
@@ -460,8 +460,8 @@ and provide an easily usable interface. Features include
burning audio CDs
from .WAV and .MP3 audio files, configuring external programs and configuring
devices.
-The @code{udisks-service} should be enabled for @command{k3b} to discover the
-available CD drives.")
+The @code{udisks-service-type} should be enabled for @command{k3b} to discover
+the available CD drives.")
(license ;; GPL for programs, FDL for documentation
(list license:gpl2+ license:fdl1.2+))))
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 4a790fbdc4..99a3628606 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -97,7 +97,7 @@
udisks-configuration
udisks-configuration?
- udisks-service
+ udisks-service ; deprecated
udisks-service-type
colord-service-type
@@ -945,9 +945,11 @@ screens and scanners.")))
(description "Run UDisks, a @dfn{disk management} daemon
that provides user interfaces with notifications and ways to mount/unmount
disks. Programs that talk to UDisks include the @command{udisksctl} command,
-part of UDisks, and GNOME Disks."))))
+part of UDisks, and GNOME Disks.")
+ (default-value (udisks-configuration)))))
-(define* (udisks-service #:key (udisks udisks))
+(define-deprecated (udisks-service #:key (udisks udisks))
+ udisks-service-type
"Return a service for @uref{http://udisks.freedesktop.org/docs/latest/,
UDisks}, a @dfn{disk management} daemon that provides user interfaces with
notifications and ways to mount/unmount disks. Programs that talk to UDisks
@@ -1858,7 +1860,7 @@ applications needing access to be root.")
;; The D-Bus clique.
(service avahi-service-type)
- (udisks-service)
+ (service udisks-service-type)
(service upower-service-type)
(service accountsservice-service-type)
(service cups-pk-helper-service-type)
- 04/23: services: base: Deprecate 'agetty-service' procedure., (continued)
- 04/23: services: base: Deprecate 'agetty-service' procedure., guix-commits, 2023/03/03
- 05/23: doc: kmscon-service-type: Use @defvar @-command., guix-commits, 2023/03/03
- 03/23: services: base: Deprecate 'mingetty-service' procedure., guix-commits, 2023/03/03
- 09/23: services: base: Deprecate 'rngd-service' procedure., guix-commits, 2023/03/03
- 11/23: services: ssh: Deprecate 'dropbear-service' procedure., guix-commits, 2023/03/03
- 06/23: services: base: Deprecate 'nscd-service' procedure., guix-commits, 2023/03/03
- 08/23: services: base: Deprecate 'udev-service' procedure., guix-commits, 2023/03/03
- 10/23: services: ssh: Deprecate 'lsh-service' procedure., guix-commits, 2023/03/03
- 13/23: services: elogind-configuration: Do not ignore 'handle-hibernate-key' by default., guix-commits, 2023/03/03
- 15/23: services: dbus: Deprecate 'polkit-service' procedure., guix-commits, 2023/03/03
- 16/23: services: desktop: Deprecate 'udisks-service' procedure.,
guix-commits <=
- 19/23: services: mail: Deprecate 'dovecot-service' procedure., guix-commits, 2023/03/03
- 20/23: services: vpn: Deprecate 'openvpn-client-service' & 'openvpn-server-service' procedures., guix-commits, 2023/03/03
- 21/23: services: lirc: Deprecate 'lirc-service' procedure., guix-commits, 2023/03/03
- 23/23: services: dbus: Deprecate 'dbus-service' procedure., guix-commits, 2023/03/03
- 22/23: services: spice: Deprecate 'spice-vdagent-service' procedure., guix-commits, 2023/03/03
- 12/23: services: desktop: Deprecate 'elogind-service' procedure., guix-commits, 2023/03/03
- 18/23: services: desktop: Deprecate 'bluetooth-service' procedure., guix-commits, 2023/03/03
- 07/23: services: base: Deprecate 'syslog-service' procedure., guix-commits, 2023/03/03
- 14/23: services: desktop: Deprecate 'accountsservice-service' procedure., guix-commits, 2023/03/03
- 17/23: services: desktop: Deprecate 'geoclue-service' procedure., guix-commits, 2023/03/03