MCPcopy Create free account
hub / github.com/Railly/agentfiles / getElectronShell

Function getElectronShell

src/utils/shell.ts:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10function getElectronShell(): ElectronShell | null {
11 try {
12 const req = (window as unknown as { require?: (id: string) => unknown }).require;
13 if (typeof req !== "function") return null;
14 const mod = req("electron") as ElectronModule | undefined;
15 return mod?.shell ?? null;
16 } catch {
17 return null;
18 }
19}
20
21export function openExternal(url: string): void {
22 const shell = getElectronShell();

Callers 2

openExternalFunction · 0.85
showItemInFolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected