testsAndMisc/docs/superpowers/contracts/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

15 lines
991 B
JSON

{
"title": "i3blocks: XDG_RUNTIME_DIR falls back to /run/user/$UID",
"objective": "The gaming, shutdown and screen-locker blocks read daily-limits' cache from /run/user/$UID when the X session has no XDG_RUNTIME_DIR, instead of looking in /tmp and showing '⏱? no data'.",
"acceptance_criteria": [
"With XDG_RUNTIME_DIR unset, gaming_budget.sh and shutdown_countdown.sh render the live cache (time left, unearned earners)",
"No i3blocks script falls back to /tmp for XDG_RUNTIME_DIR (checked in test_i3blocks_efficiency.sh)",
"test_i3blocks_{efficiency,shutdown_hint,gaming_budget}.sh pass"
],
"out_of_scope": [
"Reconnecting systemd-logind to the system bus (needs a logind restart and relogin)",
"Finding what re-parses systemd units every ~6 s"
],
"verifier": "bash linux_configuration/tests/test_i3blocks_efficiency.sh && bash linux_configuration/tests/test_i3blocks_shutdown_hint.sh && bash linux_configuration/tests/test_i3blocks_gaming_budget.sh"
}