[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Customize %desktop-services.
From: |
Alex Kost |
Subject: |
Re: Customize %desktop-services. |
Date: |
Fri, 13 May 2016 23:26:20 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Dmitry Nikolaev (2016-05-12 22:45 +0300) wrote:
[...]
> How do I write something that works like "take %desktop-services, but
> redefine (slim-service) with my definiton of (slim-service ...)"?
You need to remove the default slim service and add your own. You can
use 'service-kind' procedure to check if the service is the one you
need.
See <http://lists.gnu.org/archive/html/help-guix/2016-01/msg00064.html>
and surrounding messages.
So it would look something like this :
(cons (slim-service ...) ; your service
(remove (lambda (service)
(eq? (service-kind service)
slim-service-type))
%desktop-services))
Note that 'remove' is from (srfi srfi-1), 'service-kind' is from (gnu
services), 'slim-service-type' is from (gnu services xorg), so you need
to use all these modules in your config file.
--
Alex