mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
system: Move ~/.config/guix/current first in PATH and INFOPATH.
Fixes <https://bugs.gnu.org/31770>. Reported by iyzsong@member.fsf.org (宋文武). * gnu/system.scm (operating-system-etc-service)["profile"]: Arrange so that ~/.config/guix/current comes first in PATH and INFOPATH.
This commit is contained in:
parent
90977eb55e
commit
8d09bfe218
1 changed files with 6 additions and 2 deletions
|
@ -602,7 +602,7 @@ (define* (operating-system-etc-service os)
|
|||
# because they would require combining both profiles.
|
||||
# FIXME: See <http://bugs.gnu.org/20255>.
|
||||
export MANPATH=$HOME/.guix-profile/share/man:/run/current-system/profile/share/man
|
||||
export INFOPATH=$HOME/.config/guix/current/share/info:$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
|
||||
export INFOPATH=$HOME/.guix-profile/share/info:/run/current-system/profile/share/info
|
||||
export XDG_DATA_DIRS=$HOME/.guix-profile/share:/run/current-system/profile/share
|
||||
export XDG_CONFIG_DIRS=$HOME/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
|
||||
|
||||
|
@ -630,7 +630,8 @@ (define* (operating-system-etc-service os)
|
|||
export `cat /etc/environment | cut -d= -f1`
|
||||
fi
|
||||
|
||||
for profile in \"$HOME/.config/guix/current\" \"$HOME/.guix-profile\"
|
||||
# Arrange so that ~/.config/guix/current comes first.
|
||||
for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\"
|
||||
do
|
||||
if [ -f \"$profile/etc/profile\" ]
|
||||
then
|
||||
|
@ -644,6 +645,9 @@ (define* (operating-system-etc-service os)
|
|||
fi
|
||||
done
|
||||
|
||||
# Arrange so that ~/.config/guix/current/share/info comes first.
|
||||
export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"
|
||||
|
||||
# Set the umask, notably for users logging in via 'lsh'.
|
||||
# See <http://bugs.gnu.org/22650>.
|
||||
umask 022
|
||||
|
|
Loading…
Reference in a new issue