diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2023-08-01 19:53:10 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2023-08-01 19:54:49 +0200 |
| commit | 8bd8f54c62b64fc17d48dc36c230ca6b452c7db0 (patch) | |
| tree | 33a3b1de0c19f1cf77b60463044f94fd8ac11369 | |
| parent | 528cb08c2a5daa73b66958fdf84b8a590ba41ee5 (diff) | |
.
| -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 |
