MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / launchDesktop

Function launchDesktop

e2e/desktop/local-auth-mcp.test.ts:50–58  ·  view source on GitHub ↗
(home: string, runDir: string)

Source from the content-addressed store, hash-verified

48}
49
50const launchDesktop = async (home: string, runDir: string): Promise<ElectronApplication> =>
51 _electron.launch({
52 executablePath: electronBinary,
53 args: [appDir],
54 cwd: appDir,
55 env: { ...process.env, HOME: home },
56 recordVideo: { dir: join(runDir, ".video-tmp"), size: { width: 1280, height: 800 } },
57 timeout: 120_000,
58 });
59
60// The sidecar writes server.json (origin + bearer) once it emits EXECUTOR_READY,
61// which is exactly when firstWindow resolves — so this is always safe to read

Callers 2

runApprovalFunction · 0.70
runBearerScopingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected