fix: PYTHONPATH in screen locker status check; sudo for steam enforcer install

This commit is contained in:
Krzysztof kuhy Rudnicki 2026-05-15 01:19:57 +02:00
parent 9a955bb424
commit 8d7128241a
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,20 @@
{
"intent": "Fix two failures in install_core_system.sh run: workout locker PYTHONPATH and steam enforcer sudo",
"scope": [
"python_pkg/screen_locker/install_systemd.sh",
"linux_configuration/install_core_system.sh"
],
"changes": [
"install_systemd.sh: set PYTHONPATH to repo root before running screen_lock.py status check so python_pkg is importable",
"install_core_system.sh: call steam backlog enforcer installer with sudo so EUID check passes for systemd service install"
],
"verification": [
{
"command": "shellcheck python_pkg/screen_locker/install_systemd.sh linux_configuration/install_core_system.sh",
"result": "pass",
"evidence": "no warnings"
}
],
"risks": ["sudo on steam enforcer installs pip packages as root; acceptable since --break-system-packages is already used"],
"rollback": ["git revert HEAD"]
}

View File

@ -141,7 +141,7 @@ run_installer "Midnight shutdown timer" \
printf '\n%s\n' "$(bold "Secondary modules (${SECONDARY_MODE})…")"
ask_install "Steam backlog enforcer" \
bash "$REPO_ROOT/python_pkg/steam_backlog_enforcer/install.sh"
sudo bash "$REPO_ROOT/python_pkg/steam_backlog_enforcer/install.sh"
ask_install "Pacman wrapper" \
bash "$LINUX_CONFIG/scripts/periodic_background/digital_wellbeing/pacman/install_pacman_wrapper.sh"

View File

@ -89,4 +89,4 @@ fi
# Immediately check if today's workout is done; block if not
echo ""
echo "=== Checking today's workout status ==="
python3 "$SCREEN_LOCK_PATH" --production
PYTHONPATH="$(cd "$SCRIPT_DIR/../.." && pwd)" python3 "$SCREEN_LOCK_PATH" --production