Skip to content
pols.so docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

pols desktop

Print a link to the sandbox's desktop in the browser

Print a link to the sandbox’s desktop in the browser. It works for 12 hours, also for reconnects, until the sandbox stops (a resume needs a new link) or the API key is revoked. Whoever has the link controls the desktop’s mouse and keyboard, so keep it secret. Its token is after the #, which browsers never send to a server; run this command again for a new link.

The page shows the desktop as video over WebRTC: smooth, and with a fraction of noVNC’s bandwidth once the picture moves. It falls back to noVNC when WebRTC cannot connect (say, where UDP is blocked), and switches either way. --novnc opens it with noVNC.

The desktop is the default user’s. --user NAME opens the own desktop of a user added with pols users add, with its own Chrome; it starts when the page connects and stops after 10 minutes unused.

Usage

pols desktop SANDBOX [flags]

Examples

pols desktop web
pols desktop web --novnc
pols desktop web --user alice

Flags

-h, --help              help for desktop
    --novnc             open the desktop with noVNC instead of the WebRTC viewer
-u, --user pols users   use this sandbox user's own desktop (see pols users; default: the default user's)

The global flags work with this command too.