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

Function linuxAppPath

tests/browser/paths.js:24–34  ·  view source on GitHub ↗

* @param {string} app * @returns {Promise }

(app)

Source from the content-addressed store, hash-verified

22 * @returns {Promise<string>}
23 */
24function linuxAppPath(app) {
25 return new Promise((resolve, reject) => {
26 exec(`which ${app}`, (err, result) => {
27 if (err) {
28 reject(err);
29 } else {
30 resolve(result.trim());
31 }
32 });
33 });
34}
35
36/**
37 * @returns {Promise<string>}

Callers 3

getChromePathFunction · 0.85
getEdgePathFunction · 0.85
getFirefoxPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…