sindresorhus/opn

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Does not work correctly in sudo mode #271

jiaqidegege posted onGitHub

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


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

posted by Uzlopak over 3 years ago

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.

posted by jiaqidegege about 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests