From 51bc9ab8b808d9537d557f14eceafa180493f4d8 Mon Sep 17 00:00:00 2001 From: tetrakist Date: Wed, 17 Mar 2021 09:32:00 -0700 Subject: [PATCH] Replace all XDG_RUNTIME_HOME with XDG_RUNTIME_DIR. This is per the XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_xinit.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index bcf07e6..f2a16fb 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -16,14 +16,14 @@ envvars() { [ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME=~/.config [ -z "$XDG_CACHE_HOME" ] && export XDG_CACHE_HOME=~/.cache [ -z "$XDG_DATA_HOME" ] && export XDG_DATA_HOME=~/.local/share - [ -z "$XDG_RUNTIME_HOME" ] && export XDG_RUNTIME_HOME=~/.local/run + [ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR=~/.local/run [ -z "$XDG_PICTURES_DIR" ] && export XDG_PICTURES_DIR=~/Pictures } setupxdgdir() { - mkdir -p $XDG_RUNTIME_HOME - chmod 700 $XDG_RUNTIME_HOME - chown "$USER:$USER" "$XDG_RUNTIME_HOME" + mkdir -p $XDG_RUNTIME_DIR + chmod 700 $XDG_RUNTIME_DIR + chown "$USER:$USER" "$XDG_RUNTIME_DIR" mkdir -p "$XDG_CACHE_HOME/sxmo/" chmod 700 "$XDG_CACHE_HOME"