MCPcopy Create free account
hub / github.com/coder/coder / portableDesktop

Struct portableDesktop

agent/x/agentdesktop/portabledesktop.go:79–91  ·  view source on GitHub ↗

portableDesktop implements Desktop by shelling out to the portabledesktop CLI via agentexec.Execer.

Source from the content-addressed store, hash-verified

77// portableDesktop implements Desktop by shelling out to the
78// portabledesktop CLI via agentexec.Execer.
79type portableDesktop struct {
80 logger slog.Logger
81 execer agentexec.Execer
82 scriptBinDir string // coder script bin directory
83 clock quartz.Clock
84
85 mu sync.Mutex
86 session *desktopSession // nil until started
87 binPath string // resolved path to binary, cached
88 closed bool
89 recordings map[string]*recordingProcess // guarded by mu
90 lastDesktopActionAt atomic.Int64
91}
92
93// NewPortableDesktop creates a Desktop backed by the portabledesktop
94// CLI binary, using execer to spawn child processes. scriptBinDir is

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected