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

Does not work correctly in sudo mode #271

Open
jiaqidegege opened this issue Dec 13, 2021 · 2 comments
Open

Does not work correctly in sudo mode #271

jiaqidegege opened this issue Dec 13, 2021 · 2 comments

Comments

@jiaqidegege
Copy link

jiaqidegege commented Dec 13, 2021

When i run sudo open http://localhost:80, it didn't open default browser(chrome) but safari.
If remove sudo, it works.

env info:
OS: macOS Catalina 10.15.7
shell: zsh
node version: 12.22.2
open version: 7.0.3
default browser: Chrome 96.0.4664.93
step to reproduce: run sudo open http://localhost:80

@Uzlopak
Copy link

Uzlopak commented Jan 25, 2022

Well i assume the default browser of your root user is safari and not chrome.

@jiaqidegege
Copy link
Author

Well i assume the default browser of your root user is safari and not chrome.

Yes, this is mostly like the problem, but how to set default browser for root user, could you give me some help, tks.

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