dotfiles/environment/.config/environment.d/10-xdg.conf
Sanchayan Maity 0fcf2563ad environment: Set up environment variables via systemd
We were setting these in fish shell setup during login. Move them
here so that they can be correctly inherited by systemd services.

Without this, the tmux session service does not get the environment
variables which do not get set by the time tmux session service starts.

https://www.freedesktop.org/software/systemd/man/environment.d.html
2022-10-03 11:37:04 +05:30

11 lines
246 B
Plaintext

XDG_CONFIG_HOME=$HOME/.config
XDG_CACHE_HOME=$HOME/.cache
XDG_DATA_HOME=$HOME/.local/share
XDG_STATE_HOME=$HOME/.local/state
XDG_SESSION_TYPE=tty
XDG_SESSION_DESKTOP=sway
XDG_CURRENT_DESKTOP=sway
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket