From 5d68c683a11a36d4e3c3696da35c7bd0af89e41d Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 9 Jun 2025 20:46:44 -0500 Subject: use runtime_dir for xauthority --- zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zprofile b/zprofile index f03ef41..c2ea419 100755 --- a/zprofile +++ b/zprofile @@ -14,7 +14,6 @@ export SUDO='doas' export XDG_CACHE_HOME="$HOME/.cache" export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME}/ansible/galaxy_cache" export DOCKER_CONFIG="$XDG_CACHE_HOME/docker" -export XAUTHORITY="$XDG_CACHE_HOME/Xauthority" export XDG_CONFIG_HOME="$HOME/.config" export ANSIBLE_HOME="${XDG_CONFIG_HOME}/ansible" @@ -39,6 +38,8 @@ export XDG_STATE_HOME="$HOME/.local/state" export LESSHISTFILE='-' # Disable this, but it would be considered a state file export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" + # Path setopt nullglob # Set in case .local/bin doesn't exist for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs -- cgit v1.2.3