[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to remove extension from service definition?

From: znavko
Subject: How to remove extension from service definition?
Date: Tue, 09 Mar 2021 17:46:16 +0000

Hello! I wish to remove network-manager-applet extension from
which is in the list of extensions of
xfce-desktop-service-type [1] and [2]

And also I want to see the result.

I try it unsuccessfully like this:

$ guile
> (use-modules (gnu) (gnu services) (gnu services desktop) (srfi srfi-1))
> xfce-desktop-service-type
$1 = #<service-type xfce-desktop 7f6c0a4b1000>
> (remove (lambda (service) (eq? (service-kind service) profile-service-type)) 
> xfce-desktop-service-type)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure remove: Wrong type argument in position 2: #<service-type 
xfce-desktop 7f6c0a4b1000>

Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
Also I cannot remove service from %desktop-services asI usually do in 
> (remove (lambda (service) (member (service-kind service) (list 
> network-manager-service-type bluetooth-service))) %desktop-services)
;;; <stdin>:19:57: warning: possibly unbound variable 
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
error: network-manager-service-type: unbound variable
Can you show me how ot interact with guile ? And how to remove service 
extensionsand also 
how to look at xfce-desktop-service-type contents?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]