From a03684221324176dfc26042ed507a99bdac6e178 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 28 Mar 2024 14:38:40 +0000 Subject: [PATCH] Add XDG_RUNTIME_DIR --- roles/home-cli/files/profile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 8eaab63..30686fc 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -11,6 +11,7 @@ export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}" +export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-$HOME/.run}" # Set up XDG variables. See: # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html @@ -18,6 +19,7 @@ if [ ! -d "$XDG_DATA_HOME" ] ; then install -d -m 0700 "$XDG_DATA_HOME" ; fi if [ ! -d "$XDG_CACHE_HOME" ] ; then install -d -m 0700 "$XDG_CACHE_HOME" ; fi if [ ! -d "$XDG_CONFIG_HOME" ] ; then install -d -m 0700 "$XDG_CONFIG_HOME" ; fi if [ ! -d "$XDG_STATE_HOME" ] ; then install -d -m 0700 "$XDG_STATE_HOME" ; fi +if [ ! -d "$XDG_RUNTIME_DIR" ] ; then install -d -m 0700 "$XDG_RUNTIME_DIR" ; fi if [ ! -d "$HOME/.local/bin" ] ; then install -d -m 0700 "$HOME/.local/bin" ; fi # Locale and language.