feat(browser-tools): cross-platform Chrome/Chromium detection#10
Open
Francescolatorre wants to merge 1 commit intobadlogic:mainfrom
Open
feat(browser-tools): cross-platform Chrome/Chromium detection#10Francescolatorre wants to merge 1 commit intobadlogic:mainfrom
Francescolatorre wants to merge 1 commit intobadlogic:mainfrom
Conversation
Add getChromePath() function to detect Chrome or Chromium on: - macOS: /Applications/Google Chrome.app/... - Windows: Program Files, Program Files (x86), LocalAppData - Linux: /usr/bin/google-chrome, chromium, snap, etc. Previously the script only worked on macOS with hardcoded path. Now it automatically finds the browser on any platform.
lewiszlw
added a commit
to lewiszlw/skills
that referenced
this pull request
Mar 3, 2026
lewiszlw
added a commit
to lewiszlw/skills
that referenced
this pull request
Mar 3, 2026
This reverts commit aecfad8.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
getChromePath()function to automatically detect Chrome or Chromium installation path on different operating systems.Changes
/Applications/Google Chrome.app/...)/usr/bin/google-chrome), chromium, and snap installationsMotivation
The original script only worked on macOS due to the hardcoded Chrome path. This change enables the browser-tools skill to work out-of-the-box on Windows and Linux (including WSL).
Testing
Tested on:
/usr/bin/google-chrome)C:\Program Files\Google\Chrome\Application\chrome.exe)Notes
Falls back to hoping the binary is in PATH if no known location is found.