profiles: Add "XAUTHORITY" to the precious variables.

Suggested by Maxime Devos <maximedevos@telenet.be>.

* guix/profiles.scm (%precious-variables): Add "XAUTHORITY".
This commit is contained in:
Ludovic Courtès 2021-06-18 12:44:47 +02:00
parent ee61777a32
commit 01f5795578
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1921,7 +1921,7 @@ (define* (profile-search-paths profile
(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