MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / openInMacApp

Function openInMacApp

packages/server/src/lib/fileLaunch.ts:175–185  ·  view source on GitHub ↗
(
  appName: string,
  absolutePath: string,
  platform: NodeJS.Platform,
)

Source from the content-addressed store, hash-verified

173}
174
175function openInMacApp(
176 appName: string,
177 absolutePath: string,
178 platform: NodeJS.Platform,
179): LaunchCommand {
180 if (platform === 'darwin') {
181 return { command: 'open', args: ['-a', appName, absolutePath] };
182 }
183 // These apps are macOS-only in the UI; fall back to the platform default.
184 return openFileCommandFor(absolutePath, undefined, process.env, platform);
185}
186
187export async function launchDetached(cmd: LaunchCommand): Promise<void> {
188 return new Promise<void>((resolve, reject) => {

Callers 1

openInAppCommandForFunction · 0.85

Calls 1

openFileCommandForFunction · 0.85

Tested by

no test coverage detected