Skip to content

feat(browser-tools): cross-platform Chrome/Chromium detection#10

Open
Francescolatorre wants to merge 1 commit intobadlogic:mainfrom
Francescolatorre:feat/cross-platform-chrome-detection
Open

feat(browser-tools): cross-platform Chrome/Chromium detection#10
Francescolatorre wants to merge 1 commit intobadlogic:mainfrom
Francescolatorre:feat/cross-platform-chrome-detection

Conversation

@Francescolatorre
Copy link
Copy Markdown

@Francescolatorre Francescolatorre commented Feb 2, 2026

Summary

Add getChromePath() function to automatically detect Chrome or Chromium installation path on different operating systems.

Changes

  • macOS: Uses existing hardcoded path (/Applications/Google Chrome.app/...)
  • Windows: Searches Program Files, Program Files (x86), and LocalAppData
  • Linux: Searches common paths including apt (/usr/bin/google-chrome), chromium, and snap installations

Motivation

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:

  • Linux (WSL2 Ubuntu with /usr/bin/google-chrome)
  • macOS (should work, uses existing path)
  • Windows 11 (found at C:\Program Files\Google\Chrome\Application\chrome.exe)

Notes

Falls back to hoping the binary is in PATH if no known location is found.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant