profiles: Add "XAUTHORITY" to the precious variables.
authorLudovic Courtès <ludo@gnu.org>
Fri, 18 Jun 2021 10:44:47 +0000 (12:44 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 18 Jun 2021 12:18:07 +0000 (14:18 +0200)
Suggested by Maxime Devos <maximedevos@telenet.be>.

* guix/profiles.scm (%precious-variables): Add "XAUTHORITY".

guix/profiles.scm

index 09b2d15..8c02149 100644 (file)
@@ -1921,7 +1921,7 @@ already effective."
 
 (define %precious-variables
   ;; Environment variables in the default 'load-profile' white list.
-  '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER"))
+  '("HOME" "USER" "LOGNAME" "DISPLAY" "XAUTHORITY" "TERM" "TZ" "PAGER"))
 
 (define (purify-environment white-list white-list-regexps)
   "Unset all environment variables except those that match the regexps in