mirror of
https://github.com/badlogic/pi-skills.git
synced 2026-04-27 04:55:58 +03:00
[PR #10] feat(browser-tools): cross-platform Chrome/Chromium detection #12
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pi-skills#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
/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.