Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the default browser. #539

Open
ptitvert opened this issue Oct 22, 2020 · 1 comment
Open

How to change the default browser. #539

ptitvert opened this issue Oct 22, 2020 · 1 comment

Comments

@ptitvert
Copy link

Hi,

I don't know if that is a bug, or a feature or something else.

My question is the following. I have installed today the module "create-elm-app".
I have followed the instructions to create an empty elm app, and start the dev environment.
Everything works wonderfully. I can change the ELM code, and I can see auto-magically the changes in the browser.

My problem is that it opens Google Chrome for the browser, and not my default Browser, which is Firefox.
I know there is the argument : --no-browser to avoid that the browser is automatically started.

So here is my question, how can I change the default browser to be something else than Google Chrome?

I am on macOS Catalina, last update, and if I do a "open https://startpage.com" from the CLI, Firefox opens the page, and not Chrome.

Thank you in advance.

Regards,
Alessandro

@Qu4tro
Copy link

Qu4tro commented Jan 2, 2021

https://www.npmjs.com/package/react-dev-utils#openbrowserurl-string-boolean

Try setting the $BROWSER environment variable.

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

No branches or pull requests

2 participants