[profile] remove bad XDG_RUNTIME_DIR fallback

This commit is contained in:
odrling 2023-12-12 23:46:25 +01:00
parent edd2d62a1a
commit aaa9efec3b
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

View file

@ -39,14 +39,6 @@ export GPG_TTY=$(tty)
[ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && . "$HOME/.nix-profile/etc/profile.d/nix.sh"
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.default"
export DWL_STATUS_PIPE="$XDG_RUNTIME_DIR/dwl_status"