mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -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")
|
||||
#:environment-variables
|
||||
;; Required to detect PulseAudio when run under a user account.
|
||||
'(#$(string-append
|
||||
"XDG_RUNTIME_DIR=/run/user/"
|
||||
(number->string
|
||||
(list (string-append
|
||||
"XDG_RUNTIME_DIR=/run/user/"
|
||||
(number->string
|
||||
(passwd:uid
|
||||
(getpwnam (mpd-configuration-user config))))))
|
||||
(getpwnam #$(mpd-configuration-user config))))))
|
||||
#:log-file #$(mpd-file-name config "log")))
|
||||
(stop #~(make-kill-destructor))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue