guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: guix-install.sh: Run guix.sh script in /etc/profi


From: guix-commits
Subject: branch master updated: guix-install.sh: Run guix.sh script in /etc/profile.d last.
Date: Tue, 08 Nov 2022 04:56:31 -0500

This is an automated email from the git hooks/post-receive script.

mothacehe pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 93be56a3ab guix-install.sh: Run guix.sh script in /etc/profile.d last.
93be56a3ab is described below

commit 93be56a3ab28ed0a482f354b7f536681c99b6999
Author: Konrad Hinsen <konrad.hinsen@fastmail.net>
AuthorDate: Thu Dec 30 09:39:31 2021 +0100

    guix-install.sh: Run guix.sh script in /etc/profile.d last.
    
    * etc/guix-install.sh: Rename /etc/profile.d/guix.sh to zzz-guix.sh.
    
    This script refers to environment variables set by the host distribution.
    They may be set in other scripts in /etc/profile.d, which must therefore
    be run first.
    Example: in Ubuntu 20.04, XDG_DATA_DIRS is set in
    /etc/profile.d/xdg_dirs_desktop_session.sh
    
    Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index c8ef59d4a4..6cb4d145e1 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -506,7 +506,7 @@ sys_create_init_profile()
 { # Define for better desktop integration
   # This will not take effect until the next shell or desktop session!
     [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
-    cat <<"EOF" > /etc/profile.d/guix.sh
+    cat <<"EOF" > /etc/profile.d/zzz-guix.sh
 # Explicitly initialize XDG base directory variables to ease compatibility
 # with Guix System: see <https://issues.guix.gnu.org/56050#3>.
 export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]