~ruther/guix-local

ffc391500ac7eae1ef100d8d36f6c01f4f606170 — Andrew Tropin 4 years ago 65cabb0
home: Use absolute path for home in activation script.

* gnu/home/services.scm (compute-activation-script): Use absolute path for
home in activation script.
1 files changed, 3 insertions(+), 2 deletions(-)

M gnu/home/services.scm
M gnu/home/services.scm => gnu/home/services.scm +3 -2
@@ 420,8 420,9 @@ extended with one gexp.")))
            (he-path (string-append (getenv "HOME") "/.guix-home"))
            (new-home-env (getenv "GUIX_NEW_HOME"))
            (new-home (or new-home-env
                          ;; Path of the activation file if called interactively
                          (dirname (car (command-line)))))
                          ;; Absolute path of the directory of the activation
                          ;; file if called interactively.
                          (canonicalize-path (dirname (car (command-line))))))
            (old-home-env (getenv "GUIX_OLD_HOME"))
            (old-home (or old-home-env
                          (if (file-exists? (he-init-file he-path))