From 307e2687f23b42f48be7f98c57937d764a89f9ec Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 2 Aug 2026 17:52:02 +0200 Subject: [PATCH] fix(claude_desktop): resolve persistent bashrc explicitly --- claude_desktop/rootfs/etc/cont-init.d/22-persistent_cache.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claude_desktop/rootfs/etc/cont-init.d/22-persistent_cache.sh b/claude_desktop/rootfs/etc/cont-init.d/22-persistent_cache.sh index 44c5174052..b8cd84e74a 100644 --- a/claude_desktop/rootfs/etc/cont-init.d/22-persistent_cache.sh +++ b/claude_desktop/rootfs/etc/cont-init.d/22-persistent_cache.sh @@ -22,7 +22,7 @@ mkdir -p "$CACHE_DIR" chown "$(id -u abc):$(id -g abc)" "$CACHE_DIR" chmod 700 "$CACHE_DIR" -CACHE_DIR="$CACHE_DIR" python3 - <<'PY' +CACHE_DIR="$CACHE_DIR" LOCATION="$LOCATION" python3 - <<'PY' import os import re from pathlib import Path @@ -40,7 +40,7 @@ for path in Path("/etc/s6-overlay/s6-rc.d").glob("*/run"): if updated != text: path.write_text(updated) -bashrc = Path.home() / ".bashrc" +bashrc = Path(os.environ["LOCATION"]) / ".bashrc" if bashrc.exists(): text = bashrc.read_text() updated = re.sub(r"^export XDG_CACHE_HOME=.*$", replacement, text, flags=re.MULTILINE)