mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
services: lightdm: Use ‘make-forkexec-constructor’.
* gnu/services/lightdm.scm (lightdm-shepherd-service)[start]: Use ‘make-forkexec-constructor’ directly. Change-Id: Iaaa8dcde123ea80ce63c09033b681e40ccc589a4
This commit is contained in:
parent
f7f31c8595
commit
ae36d514aa
1 changed files with 17 additions and 18 deletions
|
@ -620,24 +620,23 @@ (define data-dirs
|
|||
(provision '(lightdm display-manager xorg-server))
|
||||
(respawn? #f)
|
||||
(start
|
||||
#~(lambda ()
|
||||
;; Note: sadly, environment variables defined for 'lightdm' are
|
||||
;; cleared and/or overridden by /etc/profile by its spawned greeters,
|
||||
;; so an out-of-band means such as /etc is required.
|
||||
(fork+exec-command #$lightdm-command
|
||||
;; Lightdm needs itself in its PATH.
|
||||
#:environment-variables
|
||||
(list
|
||||
;; It knows to look for greeter configurations in
|
||||
;; XDG_CONFIG_DIRS...
|
||||
(string-append "XDG_CONFIG_DIRS="
|
||||
#$greeters-config-dir)
|
||||
;; ... and for greeter .desktop files as well as
|
||||
;; lightdm accountsservice interface in
|
||||
;; XDG_DATA_DIRS.
|
||||
(string-append "XDG_DATA_DIRS="
|
||||
#$data-dirs)
|
||||
(string-append "PATH=" #$lightdm-paths)))))
|
||||
;; Note: sadly, environment variables defined for 'lightdm' are
|
||||
;; cleared and/or overridden by /etc/profile by its spawned greeters,
|
||||
;; so an out-of-band means such as /etc is required.
|
||||
#~(make-forkexec-constructor #$lightdm-command
|
||||
;; Lightdm needs itself in its PATH.
|
||||
#:environment-variables
|
||||
(list
|
||||
;; It knows to look for greeter
|
||||
;; configurations in XDG_CONFIG_DIRS...
|
||||
(string-append "XDG_CONFIG_DIRS="
|
||||
#$greeters-config-dir)
|
||||
;; ... and for greeter .desktop files as
|
||||
;; well as lightdm accountsservice
|
||||
;; interface in XDG_DATA_DIRS.
|
||||
(string-append "XDG_DATA_DIRS="
|
||||
#$data-dirs)
|
||||
(string-append "PATH=" #$lightdm-paths))))
|
||||
(stop #~(make-kill-destructor)))))
|
||||
|
||||
(define lightdm-service-type
|
||||
|
|
Loading…
Reference in a new issue