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

Open in new browser window, not in existing one #264

Open
spiropoulos94 opened this issue Oct 6, 2021 · 6 comments
Open

Open in new browser window, not in existing one #264

spiropoulos94 opened this issue Oct 6, 2021 · 6 comments

Comments

@spiropoulos94
Copy link

Is this possible? Please let me know :)

@leekafai
Copy link

leekafai commented Nov 5, 2021

yes

await open('https://google.com', { app: { name: open.apps.chrome, arguments: ['--new-window'] } })

@spiropoulos94
Copy link
Author

yes

await open('https://google.com', { app: { name: open.apps.chrome, arguments: ['--new-window'] } })

sorry but this doesnt work. If a have an open chrome window, using this it will just add a new tab. what i want is to open a NEW WINDOW, not add a tab to an existing one.

@archer56
Copy link

archer56 commented Nov 30, 2021

You need to pass newInstance. For example:

await open('https://google.com', { newInstance: true, app: { name: open.apps.chrome, arguments: ['--new-window'] } })

@hzhang1902
Copy link

You need to pass newInstance. For example:

await open('https://google.com', { newInstance: true, app: { name: open.apps.chrome, arguments: ['--new-window'] } })

This does not work, I'm using MacOS. Actually none of the argument passed works. I thought this was fixed.
#234

@artjomkruglenkov
Copy link

Same here. Trying this on MacOs results in new tab opened in whatever chrome window that is currently open. If all chrome instances are closed then it would open a new chrome window correctly but would continue adding tabs in this mode, regardless of what I specify next.

@jinusean
Copy link

Has there been any updates on this?

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

6 participants