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

Function serviceEnv

apps/desktop/src/main/service.ts:56–63  ·  view source on GitHub ↗
(dataDir: string)

Source from the content-addressed store, hash-verified

54};
55
56const serviceEnv = async (dataDir: string): Promise<NodeJS.ProcessEnv> => ({
57 ...process.env,
58 ...(await captureUserPath().then((path) => (path ? { PATH: path } : {}))),
59 EXECUTOR_DATA_DIR: dataDir,
60 EXECUTOR_SCOPE_DIR: dataDir,
61 EXECUTOR_CLIENT: "desktop",
62 ...sidecarCrashReportingEnv(),
63});
64
65const runExecutor = async (
66 args: ReadonlyArray<string>,

Callers 1

runExecutorFunction · 0.85

Calls 2

sidecarCrashReportingEnvFunction · 0.90
captureUserPathFunction · 0.85

Tested by

no test coverage detected