testsAndMisc/docs/superpowers/evidence/i3blocks-runtime-dir-fallback-2026-10-12.json
Krzysztof kuhy Rudnicki 3ea0359748
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
Python tests / test (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
i3blocks: XDG_RUNTIME_DIR falls back to /run/user/$UID, not /tmp
A session started while logind was off the system bus had no
XDG_RUNTIME_DIR, so the gaming and shutdown blocks looked for
daily-limits' cache in /tmp and showed '⏱? no data'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DHsV8jzhhX162EcxxEXbca
2026-10-12 08:22:43 +02:00

32 lines
1.3 KiB
JSON

{
"intent": "i3blocks gaming/shutdown/screen-locker blocks find daily-limits' cache even when the X session started without XDG_RUNTIME_DIR.",
"scope": [
"linux_configuration/i3blocks/{gaming_budget,shutdown_countdown,screen_locker}.sh",
"linux_configuration/tests/test_i3blocks_efficiency.sh",
"Non-goal: repairing logind's lost bus connection (needs a logind restart/relogin)"
],
"changes": [
"XDG_RUNTIME_DIR fallback changed from /tmp to /run/user/$UID (bash builtin, no fork)",
"Regression check: no i3blocks script may fall back to /tmp for XDG_RUNTIME_DIR"
],
"verification": [
{
"command": "env -u XDG_RUNTIME_DIR bash linux_configuration/i3blocks/gaming_budget.sh (and shutdown_countdown.sh)",
"result": "pass",
"evidence": "🎮 5h00 left · 0h00/5h00 +🧩1h +📖1h +⚙1h / ⏻ 20:40 +🧩50m +📖30m +⚙1h →max 23:00; live bar confirmed by user"
},
{
"command": "bash linux_configuration/tests/test_i3blocks_{efficiency,shutdown_hint,gaming_budget}.sh",
"result": "pass",
"evidence": "all three suites exit 0"
}
],
"risks": [
"A non-systemd login would still have no /run/user/$UID; the blocks then show the existing missing-cache state"
],
"rollback": [
"git revert this commit",
"Re-run the three i3blocks test suites"
]
}