From 8bd8f54c62b64fc17d48dc36c230ca6b452c7db0 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 1 Aug 2023 19:53:10 +0200 Subject: . --- shell/.profile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shell') 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 -- cgit v1.2.3-70-g09d2