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 open chrome page in new window every time #39

Closed
exolution opened this issue Feb 6, 2017 · 2 comments
Closed

how to open chrome page in new window every time #39

exolution opened this issue Feb 6, 2017 · 2 comments

Comments

@exolution
Copy link

if exists a chrome instance , opn will open a tag on this chrome instance
i want to open a new instance

@sindresorhus
Copy link
Owner

Then you have to pass a flag to Chrome to tell it to do that. I don't remember which flag. Google it.

@imhoffd
Copy link

imhoffd commented Apr 10, 2018

@sindresorhus The original issue probably could've provided more details.

I am seeing this with macOS with open:

open -a "google chrome" --args --new-window "https://google.com"

vs

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --new-window "https://google.com"

(run both commands twice to see that open does not open a new instance, but running chrome directly does)

The issue is the -n flag is not being passed to open to actually open a new instance of the application, and there doesn't appear to be a way to pass flags to open.

I'm not sure about the status of windows/linux.

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

3 participants