MCPcopy Index your code
hub / github.com/darkreader/darkreader / getEdgePath

Function getEdgePath

tests/browser/paths.js:60–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 * @returns {Promise<string>}
59 */
60export async function getEdgePath() {
61 if (process.platform === 'darwin') {
62 return '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge';
63 }
64 if (process.platform === 'win32') {
65 return winProgramFiles('Microsoft\\Edge\\Application\\msedge.exe');
66 }
67 const possibleLinuxPaths = ['microsoft-edge', 'microsoft-edge-stable'];
68 for (const possiblePath of possibleLinuxPaths) {
69 try {
70 return await linuxAppPath(possiblePath);
71 } catch (e) {
72 // ignore
73 }
74 }
75 throw new Error('Could not find Edge');
76}
77
78/**
79 * @returns {Promise<string>}

Callers 1

launchEdgeMethod · 0.90

Calls 2

winProgramFilesFunction · 0.85
linuxAppPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…