Skip to content

fix(browser-tools): make browser-start.js cross-platform - #47

Open
re2zero wants to merge 1 commit into
badlogic:mainfrom
re2zero:fix/browser-cross-platform
Open

fix(browser-tools): make browser-start.js cross-platform#47
re2zero wants to merge 1 commit into
badlogic:mainfrom
re2zero:fix/browser-cross-platform

Conversation

@re2zero

@re2zero re2zero commented Aug 17, 2026

Copy link
Copy Markdown

browser-start.js was hardcoded to macOS Chrome, making it unusable on Linux and Windows.

Changes:

  1. BROWSER_TOOLS_CHROME env var override
  2. Platform-specific defaults (macOS/Linux/Windows)
  3. PATH search via command -v / where
  4. Replaces rsync with cp -r
  5. Platform-correct Chrome profile dirs

Closes #33

Previously browser-start.js was hardcoded to macOS Chrome at
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome.

Now it:
- Checks BROWSER_TOOLS_CHROME env var for explicit override
- Detects platform (macOS/Linux/Windows) with default install paths
- Searches PATH via command -v / where for common browser names
- Uses cp -r instead of rsync for cross-platform profile sync
- Provides a clear error message if no browser is found

Closes badlogic#33
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.

browser-tools browser-start.js is hardcoded to macOS Chrome

1 participant