desktop

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Desktop example: build the local e2b.Dockerfile as a template, launch a sandbox, print the noVNC URL, then prove that SDK PTY sessions are mirrored into the shared tmux that the VNC desktop shows.

Requirements verified here:

  1. Browser GUI over VNC: prints an HTTPS noVNC URL the caller can open.
  2. Bash-PTY visibility: writes a marker to a bash PTY started via Pty.Create, then snapshots `tmux -L main` with Commands.Run and asserts the marker appears there.
  3. Dev toolkit smoke test: python3 + node imports run cleanly.

Note: `Commands.Run` does NOT go through a PTY and therefore is NOT mirrored to the VNC desktop. Use `Pty.Create` for a visible session, or explicitly send keystrokes with `tmux -L main send-keys -t main "<cmd>" Enter`.

Usage:

source ./.env && go run ./examples/desktop

Set E2B_TEMPLATE_ID to reuse an existing template (skips build + teardown).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL