mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
fix: PYTHONPATH in screen locker status check; sudo for steam enforcer install
This commit is contained in:
parent
9a955bb424
commit
8d7128241a
20
docs/superpowers/evidence/fix-install-failures.json
Normal file
20
docs/superpowers/evidence/fix-install-failures.json
Normal 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"]
|
||||
}
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user