MCPcopy Index your code
hub / github.com/callstack/agent-device / closeApp

Function closeApp

src/platforms/linux/tool-provider.ts:151–158  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

149 await runCommand('xdg-open', [target], { allowFailure: true });
150 },
151 async closeApp(app) {
152 if (await whichCommand('wmctrl')) {
153 await runCommand('wmctrl', ['-c', app], { allowFailure: true });
154 return;
155 }
156
157 await runCommand('pkill', ['-x', app], { allowFailure: true });
158 },
159 };
160}
161

Callers

nothing calls this directly

Calls 1

runCommandFunction · 0.50

Tested by

no test coverage detected