From c01f85ef24eb5a7b4abb24cb6b0d936574203200 Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Thu, 19 Feb 2026 17:54:35 -0500 Subject: [PATCH] Remove sudo from startup scripts baseimage-gui already runs startapp.sh as the app user (UID 1000), so sudo -u is unnecessary and fails since 'app' is not in sudoers. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude Co-Authored-By: Happy --- scripts/init-repo.sh | 4 ++-- scripts/startapp.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/init-repo.sh b/scripts/init-repo.sh index 3f3509a..c4af4e6 100644 --- a/scripts/init-repo.sh +++ b/scripts/init-repo.sh @@ -64,8 +64,8 @@ HAPPY_LOG="/tmp/happy-coder.log" touch "$HAPPY_LOG" chown "$RUN_UID:$RUN_GID" "$HAPPY_LOG" -# Start Happy Coder as the app user (use numeric UID for compatibility with baseimage-gui) -sudo -u "#$RUN_UID" bash -c "cd '$WORKSPACE_DIR' && happy-coder > '$HAPPY_LOG' 2>&1 &" +# Start Happy Coder (already running as the correct user via baseimage-gui) +bash -c "cd '$WORKSPACE_DIR' && happy-coder > '$HAPPY_LOG' 2>&1 &" # Save PID for monitoring echo $! > /tmp/happy-coder.pid diff --git a/scripts/startapp.sh b/scripts/startapp.sh index ffb9dbe..3002e63 100644 --- a/scripts/startapp.sh +++ b/scripts/startapp.sh @@ -18,5 +18,4 @@ echo "Opening Antigravity in: $WORKSPACE_DIR" # Start Antigravity (VSCode) in the workspace directory as claude user # The baseimage-gui will handle the GUI display -RUN_UID="${USER_ID:-1000}" -exec sudo -u "#$RUN_UID" code --new-window --wait "$WORKSPACE_DIR" +exec code --new-window --wait "$WORKSPACE_DIR"