diff options
Diffstat (limited to 'shell/.profile')
| -rw-r--r-- | shell/.profile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/.profile b/shell/.profile index 395ff47..7922bbd 100644 --- a/shell/.profile +++ b/shell/.profile @@ -35,3 +35,10 @@ export PATH # [ -e $nix_profile_sh ] && . $nix_profile_sh # export LOCALE_ARCHIVE=~/.nix-profile/lib/locale/locale-archive +if [ -z "${XDG_RUNTIME_DIR}" ]; then + export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir + if [ ! -d "${XDG_RUNTIME_DIR}" ]; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi |
