-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Command-line arguments are not passed on macOS #12
Comments
@IssueHunt has funded $40.00 to this issue.
|
@wesleycoder For some reason I couldn't reproduce some of the scenarios you mentioned in the issue:
I am on Mac OS X Mojave (10.14.5) too. May be I am unsure of what you're expecting |
Let me know if I can provide more info or help with anything. |
I have the same issue. The issue seems to be, at least for the --incognito argument, it has to be passed differently to the native "open" cli on Mac in order to be respected. The current libary uses "open" library that calls the native "open" CLI on mac as follows:
But in order for --incognito to be respected, one has to start a new instance and pass the URL among the arguments instead:
I was about to fix this in the source but I'm out of time as it also would require a change on the "open" package that this depends on. |
@dfahlander Seems like sindresorhus/open#253 added the option required in order to fix this in the CLI, right? |
This is not relevant for me anymore and since there was no activity for a long time I'll be closing this PR so it clears out of the pile. |
I use this cli to pass args via npm scripts like:
opn http://localhost:4200 -- 'google-chrome' --user-data-dir=.tmp-chrome --remote-debugging-port=9876
But on MacOS Mojave it doesn't works, I think it is because the browser is named diferently on the OS.
But even when passing:
opn http://localhost:4200 -- 'Google Chrome' --user-data-dir=.tmp-chrome --remote-debugging-port=9876
The browser doesn't start.
Calling
opn http://localhost:4200 -- 'Google Chrome'
it opens the browser.My necessity is to open another instance of the browser with a profile scoped to the
.tmp-chrome
folder.I've wrote a simple script as a workaround to use on my project, but I think this package could solve this problem more elegantly.
The text was updated successfully, but these errors were encountered: