From 22caf2baa379132dddf3e79e41227ad39e33134c Mon Sep 17 00:00:00 2001 From: ymcx <89810988+ymcx@users.noreply.github.com> Date: Fri, 13 Mar 2026 21:50:26 +0200 Subject: [PATCH 1/2] Get the config directory from $XDG_CONFIG_HOME if it is set --- profile.d/toolbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.d/toolbox.sh b/profile.d/toolbox.sh index 28e88938b..de9211615 100644 --- a/profile.d/toolbox.sh +++ b/profile.d/toolbox.sh @@ -4,7 +4,7 @@ [ "${BASH_VERSION:-}" != "" ] || [ "${ZSH_VERSION:-}" != "" ] || return 0 [ "$PS1" != "" ] || return 0 -toolbox_config="$HOME/.config/toolbox" +[ -z "$XDG_CONFIG_HOME" ] && toolbox_config="$HOME/.config/toolbox" || toolbox_config="$XDG_CONFIG_HOME/toolbox" host_welcome_stub="$toolbox_config/host-welcome-shown" toolbox_welcome_stub="$toolbox_config/toolbox-welcome-shown" From 0f5e62a55212e9c871c991f0e3d9d368767b11cc Mon Sep 17 00:00:00 2001 From: Tino <89810988+ymcx@users.noreply.github.com> Date: Sat, 14 Mar 2026 13:18:01 +0200 Subject: [PATCH 2/2] Apply suggestion from @gemini-code-assist[bot] Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- profile.d/toolbox.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.d/toolbox.sh b/profile.d/toolbox.sh index de9211615..020d6e8ad 100644 --- a/profile.d/toolbox.sh +++ b/profile.d/toolbox.sh @@ -4,7 +4,7 @@ [ "${BASH_VERSION:-}" != "" ] || [ "${ZSH_VERSION:-}" != "" ] || return 0 [ "$PS1" != "" ] || return 0 -[ -z "$XDG_CONFIG_HOME" ] && toolbox_config="$HOME/.config/toolbox" || toolbox_config="$XDG_CONFIG_HOME/toolbox" +toolbox_config="${XDG_CONFIG_HOME:-$HOME/.config}/toolbox" host_welcome_stub="$toolbox_config/host-welcome-shown" toolbox_welcome_stub="$toolbox_config/toolbox-welcome-shown"