[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting services from %desktop-services in operating system declara
Re: Deleting services from %desktop-services in operating system declaration
Thu, 21 Jan 2016 00:24:30 +0100
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
> I have trouble getting the syntax right to delete avahi and wicd from
> my config.scm.
The correct syntax would be:
(services (remove (lambda (service)
(or (eq? (service-kind service)
(eq? (service-kind service)
As David notes, ‘%desktop-services’ is a list of service objects. To
remove elements from a list, the right procedure is ‘remove’ (info
"(guile) SRFI-1 Filtering and Partitioning").
> The manual does not yet have examples of how to delete one or more
> entries from the %base-services or other lists.
I’ve added this example in commit 5d94ac5.