mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
scripts: home: Move ensure-profile-directory to a better place.
The profile directory is usually created by daemon, when user opens a connection. Ideally, we would like to remove ensure-profile-directory call at all, but daemon doesn't handle case with custom $GUIX_STATE_DIRECTORY yet. More information in: <https://issues.guix.gnu.org/61717> * guix/scripts/home.scm (process-action): Move ensure-profile-directory call to the place, where connection to the daemon is already open. Reported-by: wolf <wolf@wolfsden.cz>
This commit is contained in:
parent
e36ac71551
commit
e615aaca28
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2021 Andrew Tropin <andrew@trop.in>
|
||||
;;; Copyright © 2021, 2023 Andrew Tropin <andrew@trop.in>
|
||||
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
|
||||
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
|
||||
;;; Copyright © 2021 Oleg Pykhalov <go.wigust@gmail.com>
|
||||
|
@ -409,6 +409,7 @@ (define* (perform-action action he
|
|||
network?)
|
||||
"Perform ACTION for home environment. "
|
||||
|
||||
(ensure-profile-directory)
|
||||
(define println
|
||||
(cut format #t "~a~%" <>))
|
||||
|
||||
|
@ -473,7 +474,6 @@ (define (process-action action args opts)
|
|||
declaration as an argument (a file name.) OPTS is the raw alist of options
|
||||
resulting from command-line parsing."
|
||||
(define (ensure-home-environment file-or-exp obj)
|
||||
(ensure-profile-directory)
|
||||
(unless (home-environment? obj)
|
||||
(leave (G_ "'~a' does not return a home environment~%")
|
||||
file-or-exp))
|
||||
|
|
Loading…
Reference in a new issue