From 7eac4f5a427fb094865ece58c3509606264884b0 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Mon, 15 Feb 2021 16:07:37 +0100 Subject: [PATCH] scripts: preserve XAUTHORITY in pure environments (XXX untested) Fixes: * guix/scripts/environment.scm (%precious-variables): add 'XAUTHORITY' --- guix/scripts/environment.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index f4d12f89bf..656294d29d 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -53,7 +53,7 @@ ;; Protect some env vars from purification. Borrowed from nix-shell. (define %precious-variables - '("HOME" "USER" "LOGNAME" "DISPLAY" "TERM" "TZ" "PAGER")) + '("HOME" "USER" "LOGNAME" "XAUTHORITY" "DISPLAY" "TERM" "TZ" "PAGER")) (define %default-shell (or (getenv "SHELL") "/bin/sh")) -- 2.30.0