Update .profile to export XDG base dirs (#526)

Not every program will read them from ~/.config/user-dirs.dirs so might as well export them yourself... Also can now use them elsewhere.
This commit is contained in:
Aleks Ozolins 2020-04-05 09:19:53 -04:00 committed by GitHub
parent 26d8e9e006
commit 043c625353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,9 @@ export BROWSER="brave"
export READER="zathura" export READER="zathura"
export STATUSBAR="${LARBSWM}blocks" export STATUSBAR="${LARBSWM}blocks"
# Export XDG environmental variables from '~/.config/user-dirs.dirs'
eval "$(sed 's/^[^#].*/export &/g;t;d' ~/.config/user-dirs.dirs)"
# ~/ Clean-up: # ~/ Clean-up:
#export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. #export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config" export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"