desktop

command
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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