From 05c542d8086d34b87c70f4f42056c39700f64772 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sun, 4 Jan 2026 16:25:55 -0500 Subject: [PATCH] Use full venv python path for channel key generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't rely on source activate - use direct path to venv python. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rpi/first-boot-wizard.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpi/first-boot-wizard.sh b/rpi/first-boot-wizard.sh index 076b40b..fd94171 100755 --- a/rpi/first-boot-wizard.sh +++ b/rpi/first-boot-wizard.sh @@ -141,8 +141,9 @@ if gum confirm "Generate a private channel key?" --default=false; then # Generate key to temp file (gum spin doesn't capture stdout well) KEY_FILE=$(mktemp) ERR_FILE=$(mktemp) + VENV_PYTHON="$INSTALL_DIR/venv/bin/python" gum spin --spinner dot --title "Generating channel key..." -- \ - bash -c "source '$INSTALL_DIR/venv/bin/activate' 2>'$ERR_FILE' && python -c 'from stegasoo.channel import generate_channel_key; print(generate_channel_key())' > '$KEY_FILE' 2>>'$ERR_FILE'" + bash -c "'$VENV_PYTHON' -c 'from stegasoo.channel import generate_channel_key; print(generate_channel_key())' > '$KEY_FILE' 2>'$ERR_FILE'" CHANNEL_KEY=$(cat "$KEY_FILE" 2>/dev/null | head -1) KEY_ERROR=$(cat "$ERR_FILE" 2>/dev/null)