mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
services: mcron: Fix home version not respecting user PATH variable.
Without this fix, deploying `home-mcron-service-type' will strip user's PATH variable from it's environment. This means that, programs such as `notmuch', which use hooks which usually invoke `notmuch' from path, would need to be updated with full paths; which makes it very inconvenient to use. * gnu/services/mcron.scm (mcron-shepherd-services): respect user PATH variable. Change-Id: I104aa0a818ad6c3266b2b8f73a9609bfb36e314d Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
1fb4c399ea
commit
ebe00a20e2
1 changed files with 6 additions and 3 deletions
|
@ -182,9 +182,12 @@ (define (mcron-shepherd-services config)
|
|||
;; set a sane value for 'PATH'.
|
||||
#:environment-variables
|
||||
(cons* "GUILE_AUTO_COMPILE=0"
|
||||
"PATH=/run/current-system/profile/bin"
|
||||
(remove (cut string-prefix? "PATH=" <>)
|
||||
(environ)))
|
||||
#$(if home-service?
|
||||
'(environ)
|
||||
'(cons*
|
||||
"PATH=/run/current-system/profile/bin"
|
||||
(remove (cut string-prefix? "PATH=" <>)
|
||||
(environ)))))
|
||||
|
||||
#:log-file #$log-file))
|
||||
(stop #~(make-kill-destructor))
|
||||
|
|
Loading…
Reference in a new issue