From 1a92dcab7eee67364501135facb32f936f556819 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 21 Feb 2021 14:40:40 -0500 Subject: [PATCH] Blacklist XAUTHORITY from envvar files XAUTHORITY is likely to become stale if persisted across sessions. --- core/cli/env.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cli/env.el b/core/cli/env.el index 4fcb84b05..6f98708fd 100644 --- a/core/cli/env.el +++ b/core/cli/env.el @@ -64,7 +64,7 @@ Why this over exec-path-from-shell? '(;; State that may be problematic if overwritten "^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM$" "^USER$" ;; X server or services' variables - "^DISPLAY$" "^DBUS_SESSION_BUS_ADDRESS$" + "^DISPLAY$" "^DBUS_SESSION_BUS_ADDRESS$" "^XAUTHORITY$" ;; ssh and gpg variables (likely to become stale) "^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$" "^GPG_AGENT_INFO$"