Skip to content

Add support for emrun --browser to point to a macOS browser app root path#26928

Merged
juj merged 2 commits into
emscripten-core:mainfrom
juj:fix_emrun_with_browser_pointing_to_app
May 14, 2026
Merged

Add support for emrun --browser to point to a macOS browser app root path#26928
juj merged 2 commits into
emscripten-core:mainfrom
juj:fix_emrun_with_browser_pointing_to_app

Conversation

@juj
Copy link
Copy Markdown
Collaborator

@juj juj commented May 12, 2026

The convention taken for EMTEST_BROWSER is to have it point to the macOS app, and not the path to the executable inside the app. Fix emrun to also use this same convention.

Fixes test emrun.test_emrun on macOS, when EMTEST_BROWSER=/Applications/Safari.app

http://clbri.com:8010/api/v2/logs/434413/raw_inline

…cOS app, and not the path to the executable inside the app. Fix emrun to also use this same convention.
Comment thread emrun.py Outdated
options = emrun_options = parse_args(args)

if MACOS and options.browser.endswith('.app') and not options.browser.startswith('open'):
options.browser_args = '--new --fresh --background -a ' + options.browser + ' ' + str(options.browser_args)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using and f-string here?

@juj juj merged commit aacbb9a into emscripten-core:main May 14, 2026
4 of 14 checks passed
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.

2 participants