From cf50332a8fbbdd601802c1439a4574b7126c8fce Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Mar 2026 07:40:53 +0000 Subject: [PATCH] Check XDG_RUNTIME_DIR is writable, not just set SSH sessions may export XDG_RUNTIME_DIR=/run/user/ even when that directory doesn't exist or isn't writable. Check writability rather than emptiness before falling back to /tmp/podman-. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH --- infra/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/start.sh b/infra/start.sh index 91593d8..0908aaa 100755 --- a/infra/start.sh +++ b/infra/start.sh @@ -66,7 +66,7 @@ echo "[hiy] Generated proxy/caddy.json for ${DOMAIN_SUFFIX}" # shells. Podman uses XDG_RUNTIME_DIR for RunRoot, events dirs, and the # default socket path, so we must set it to something writable before any # podman invocation. -if [ -z "${XDG_RUNTIME_DIR:-}" ]; then +if [ ! -d "${XDG_RUNTIME_DIR:-}" ] || [ ! -w "${XDG_RUNTIME_DIR:-}" ]; then export XDG_RUNTIME_DIR="/tmp/podman-$(id -u)" mkdir -p "$XDG_RUNTIME_DIR" fi