MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / launchctlLoad

Function launchctlLoad

apps/cli/src/daemon/service.ts:111–121  ·  view source on GitHub ↗
(plistPath: string)

Source from the content-addressed store, hash-verified

109}
110
111function launchctlLoad(plistPath: string): void {
112 try {
113 execSync(`launchctl bootstrap gui/${getUid()} "${plistPath}"`, { stdio: 'pipe' })
114 } catch {
115 try {
116 execSync(`launchctl load "${plistPath}"`, { stdio: 'pipe' })
117 } catch (err) {
118 throw new Error(`launchctl load failed: ${err instanceof Error ? err.message : err}`)
119 }
120 }
121}
122
123function launchctlUnload(plistPath: string): void {
124 try {

Callers 1

installMacosFunction · 0.85

Calls 1

getUidFunction · 0.85

Tested by

no test coverage detected