MCPcopy Create free account
hub / github.com/HELPMEEADICE/doge-code / open

Function open

src/utils/computerUse/platforms/linux.ts:363–372  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

361 },
362
363 async open(name) {
364 try {
365 const desktopName = name.endsWith('.desktop') ? name : `${name}.desktop`
366 if (commandExists('gtk-launch')) {
367 await runAsync(['gtk-launch', desktopName])
368 return
369 }
370 } catch { /* fall through */ }
371 await runAsync(['xdg-open', name])
372 },
373
374 getFrontmostApp(): FrontmostAppInfo | null {
375 try {

Callers

nothing calls this directly

Calls 2

commandExistsFunction · 0.85
runAsyncFunction · 0.85

Tested by

no test coverage detected