Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
#!/usr/bin/env bash
# Run a command inside the desktop session environment (DISPLAY, session bus,
# a11y bridge). Handy for `docker exec <ctr> desktop-env xdotool ...`.
# Re-execs as the desktop user when invoked as root.
set -euo pipefail
DESKTOP_USER="${CUA_DESKTOP_USER:-cua}"
if [ "$(id -u)" = 0 ] && [ "${CUA_AS_ROOT:-0}" != 1 ]; then
exec runuser -u "$DESKTOP_USER" -- "$0" "$@"
fi
ENV_FILE="${CUA_DESKTOP_RUNTIME_DIR:-/run/cua-desktop}/desktop.env"
if [ -r "$ENV_FILE" ]; then
set -a; . "$ENV_FILE"; set +a
else
export DISPLAY="${CUA_DISPLAY:-:1}"
fi
export HOME="${HOME:-/home/$(id -un)}"
[ "$#" -gt 0 ] || set -- bash -l
exec "$@"