mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
services: mpd: Do not eagerly look for a user.
Running 'guix system search mpd' would throw a backtrace because the mpd-shepherd-service service start Gexp contained an unquoted call to 'getpwnam', which would look for a missing 'mpd' user and fail. * gnu/services/audio.scm (mpd-shepherd-service): gexp-unquote only the relevant variable rather than the whole expression.
This commit is contained in:
parent
51916455d0
commit
0c5d0c57d3
1 changed files with 4 additions and 4 deletions
|
@ -143,11 +143,11 @@ (define (mpd-shepherd-service config)
|
||||||
#:pid-file #$(mpd-file-name config "pid")
|
#:pid-file #$(mpd-file-name config "pid")
|
||||||
#:environment-variables
|
#:environment-variables
|
||||||
;; Required to detect PulseAudio when run under a user account.
|
;; Required to detect PulseAudio when run under a user account.
|
||||||
'(#$(string-append
|
(list (string-append
|
||||||
"XDG_RUNTIME_DIR=/run/user/"
|
"XDG_RUNTIME_DIR=/run/user/"
|
||||||
(number->string
|
(number->string
|
||||||
(passwd:uid
|
(passwd:uid
|
||||||
(getpwnam (mpd-configuration-user config))))))
|
(getpwnam #$(mpd-configuration-user config))))))
|
||||||
#:log-file #$(mpd-file-name config "log")))
|
#:log-file #$(mpd-file-name config "log")))
|
||||||
(stop #~(make-kill-destructor))))
|
(stop #~(make-kill-destructor))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue