[PR #10] feat(browser-tools): cross-platform Chrome/Chromium detection #12

Open
opened 2026-03-07 13:58:00 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/badlogic/pi-skills/pull/10

State: open
Merged: No


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.

**Original Pull Request:** https://github.com/badlogic/pi-skills/pull/10 **State:** open **Merged:** No --- ## 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: - [x] Linux (WSL2 Ubuntu with `/usr/bin/google-chrome`) - [ ] macOS (should work, uses existing path) - [x] 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.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pi-skills#12
No description provided.