Skip to content
Snippets Groups Projects
Commit ac41737f authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

services: dbus: Set the search path for .service files.

* gnu/services/dbus.scm (dbus-configuration-directory)[services->sxml]:
  Produce a <servicedir> tag.
parent dfba5489
No related branches found
No related tags found
No related merge requests found
......@@ -40,15 +40,18 @@ (define (dbus-configuration-directory dbus services)
@var{services}."
(define build
#~(begin
(use-modules (sxml simple))
(use-modules (sxml simple)
(srfi srfi-1))
(define (services->sxml services)
;; Return the SXML 'includedir' clauses for DIRS.
`(busconfig
,@(map (lambda (dir)
`(includedir ,(string-append dir
"/etc/dbus-1/system.d")))
services)))
,@(append-map (lambda (dir)
`((includedir
,(string-append dir "/etc/dbus-1/system.d"))
(servicedir ;for '.service' files
,(string-append dir "/share/dbus-1/services"))))
services)))
(mkdir #$output)
(copy-file (string-append #$dbus "/etc/dbus-1/system.conf")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment