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

Function launchctl

e2e/desktop-packaged/supervised-regressions.test.ts:301–308  ·  view source on GitHub ↗
(args: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

299}
300
301const launchctl = async (args: ReadonlyArray<string>): Promise<boolean> => {
302 try {
303 await execFileAsync("launchctl", [...args]);
304 return true;
305 } catch {
306 return false;
307 }
308};
309
310const captureLaunchdService = (): LaunchdServiceSnapshot | null => {
311 if (process.platform !== "darwin") return null;

Callers 1

restoreLaunchdServiceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected