[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61789] [PATCH 19/27] services: desktop: Deprecate 'udisks-service'
From: |
Bruno Victal |
Subject: |
[bug#61789] [PATCH 19/27] services: desktop: Deprecate 'udisks-service' procedure. |
Date: |
Sat, 25 Feb 2023 18:58:05 +0000 |
* 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.
---
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 4ed77d6715..2c9f55cd19 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -23529,9 +23529,10 @@ Desktop Services
@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
@@ -23539,7 +23540,19 @@ Desktop Services
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 @@ (define-public k3b
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 24d9d9f0c3..701c64a75d 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -95,7 +95,7 @@ (define-module (gnu services desktop)
udisks-configuration
udisks-configuration?
- udisks-service
+ udisks-service ; deprecated
udisks-service-type
colord-service-type
@@ -931,9 +931,11 @@ (define udisks-service-type
(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
@@ -1799,7 +1801,7 @@ (define* (desktop-services-for-system #:optional
;; 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)
--
2.39.1
- [bug#61789] [PATCH 23/27] services: vpn: Deprecate 'openvpn-client-service' & 'openvpn-server-service' procedures., (continued)
- [bug#61789] [PATCH 23/27] services: vpn: Deprecate 'openvpn-client-service' & 'openvpn-server-service' procedures., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 02/27] services: base: Deprecate 'login-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 05/27] doc: kmscon-service-type: Use @defvar @-command., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 18/27] services: dbus: Deprecate 'polkit-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 10/27] services: base: Deprecate 'pam-limits-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 26/27] services: dict: Deprecate 'dicod-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 03/27] services: base: Deprecate 'mingetty-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 09/27] services: base: Deprecate 'rngd-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 12/27] services: ssh: Deprecate 'lsh-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 04/27] services: base: Deprecate 'agetty-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 19/27] services: desktop: Deprecate 'udisks-service' procedure.,
Bruno Victal <=
- [bug#61789] [PATCH 11/27] services: tor: Deprecate 'tor-hidden-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 17/27] services: desktop: Deprecate 'accountsservice-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 24/27] services: lirc: Deprecate 'lirc-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 20/27] services: desktop: Deprecate 'geoclue-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 16/27] services: elogind-configuration: Do not ignore 'handle-hibernate-key' by default., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 22/27] services: mail: Deprecate 'dovecot-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 25/27] services: spice: Deprecate 'spice-vdagent-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 21/27] services: desktop: Deprecate 'bluetooth-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 15/27] services: desktop: Deprecate 'elogind-service' procedure., Bruno Victal, 2023/02/25
- [bug#61789] [PATCH 27/27] services: dbus: Deprecate 'dbus-service' procedure., Bruno Victal, 2023/02/25