MCPcopy Create free account
hub / github.com/diillson/chatcli / lookupFallbackBrowser

Function lookupFallbackBrowser

cli/plugins/webfetch_render.go:169–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169func lookupFallbackBrowser() (string, bool) {
170 for _, candidate := range fallbackBrowserCandidates {
171 if strings.ContainsAny(candidate, `/\`) {
172 if _, err := os.Stat(candidate); err == nil {
173 return candidate, true
174 }
175 continue
176 }
177 if path, err := exec.LookPath(candidate); err == nil {
178 return path, true
179 }
180 }
181 return "", false
182}
183
184// ── Shared browser lifecycle ────────────────────────────────────────
185

Callers 1

resolveRenderBrowserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected