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

Function launchDesktop

e2e/desktop/traffic-light-overlap.test.ts:55–62  ·  view source on GitHub ↗
(home: string)

Source from the content-addressed store, hash-verified

53const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
54
55const launchDesktop = async (home: string): Promise<ElectronApplication> =>
56 _electron.launch({
57 executablePath: electronBinary,
58 args: [appDir],
59 cwd: appDir,
60 env: { ...process.env, HOME: home },
61 timeout: 120_000,
62 });
63
64// Draw the native macOS traffic lights at the app's configured
65// trafficLightPosition. Faithful geometry: 12px buttons, 20px center spacing,

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected