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

Function associatedBundleIdentifier

apps/cli/src/service.ts:250–260  ·  view source on GitHub ↗
(programArguments: ReadonlyArray<string>)

Source from the content-addressed store, hash-verified

248};
249
250const associatedBundleIdentifier = (programArguments: ReadonlyArray<string>): string | null => {
251 const executablePath = programArguments[0];
252 if (!executablePath) return null;
253 const appBundlePath = enclosingAppBundlePath(executablePath);
254 if (!appBundlePath) return null;
255 const bundleIdentifier = readBundleIdentifier(appBundlePath);
256 if (bundleIdentifier) return bundleIdentifier;
257 return /(?:^|\/)Executor\.app\/Contents\//.test(executablePath)
258 ? DESKTOP_APP_BUNDLE_IDENTIFIER
259 : null;
260};
261
262export interface LaunchdPlistOptions {
263 readonly label: string;

Callers 1

generateLaunchdPlistFunction · 0.85

Calls 2

enclosingAppBundlePathFunction · 0.85
readBundleIdentifierFunction · 0.85

Tested by

no test coverage detected