logo

dotfiles

My dotfiles, one branch per machine, rebased on base git clone https://anongit.hacktivis.me/git/dotfiles.git/
commit: 542339b88fd2c5c5739be03296632418143a0017
parent ba5a7413f13c899b451aedab38b38a3628cbb1bd
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 13 Sep 2025 23:43:39 +0200

.profile: simplify XDG_RUNTIME_DIR & XDG_CACHE_HOME handling

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>

Diffstat:

M.profile10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/.profile b/.profile @@ -59,15 +59,9 @@ export XDG_TEMPLATES_DIR="$HOME/templates" export XDG_VIDEOS_DIR="$HOME/Videos" export XDG_MUSIC_DIR="$HOME/Music" export XDG_RUNTIME_DIR="/tmp/$(id -u)-xdg_runtime_dir" -[ -d "${XDG_RUNTIME_DIR}" ] || ( - mkdir -p "${XDG_RUNTIME_DIR}" - chmod 0700 "${XDG_RUNTIME_DIR}" -) +mkdir -p -m 0700 "${XDG_RUNTIME_DIR}" export XDG_CACHE_HOME="/tmp/$(id -u)-xdg_cache_home" -[ -d "${XDG_CACHE_HOME}" ] || ( - mkdir -p "${XDG_CACHE_HOME}" - chmod 0700 "${XDG_CACHE_HOME}" -) +mkdir -p -m 0700 "${XDG_CACHE_HOME}" ## XKB configuration (Wayland+xinit) #export XKB_DEFAULT_RULES=""