Blacklist XAUTHORITY from envvar files

XAUTHORITY is likely to become stale if persisted across sessions.
This commit is contained in:
Henrik Lissner 2021-02-21 14:40:40 -05:00
parent e2784d6f4f
commit 1a92dcab7e

View file

@ -64,7 +64,7 @@ Why this over exec-path-from-shell?
'(;; State that may be problematic if overwritten '(;; State that may be problematic if overwritten
"^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM$" "^USER$" "^HOME$" "^\\(OLD\\)?PWD$" "^SHLVL$" "^PS1$" "^R?PROMPT$" "^TERM$" "^USER$"
;; X server or services' variables ;; 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 and gpg variables (likely to become stale)
"^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$" "^SSH_\\(AUTH_SOCK\\|AGENT_PID\\)$" "^\\(SSH\\|GPG\\)_TTY$"
"^GPG_AGENT_INFO$" "^GPG_AGENT_INFO$"