c01f85ef24
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 <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
22 lines
548 B
Bash
22 lines
548 B
Bash
#!/bin/bash
|
|
# Start application script for baseimage-gui
|
|
set -e
|
|
|
|
echo "=== Starting Antigravity Dev Container ==="
|
|
|
|
# Initialize repository and Happy Coder
|
|
/usr/local/bin/init-repo
|
|
|
|
# Get workspace directory
|
|
if [ -f /tmp/workspace-dir ]; then
|
|
WORKSPACE_DIR=$(cat /tmp/workspace-dir)
|
|
else
|
|
WORKSPACE_DIR="/workspace/default"
|
|
fi
|
|
|
|
echo "Opening Antigravity in: $WORKSPACE_DIR"
|
|
|
|
# Start Antigravity (VSCode) in the workspace directory as claude user
|
|
# The baseimage-gui will handle the GUI display
|
|
exec code --new-window --wait "$WORKSPACE_DIR"
|