-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Add newInstance
option for macOS
#253
Conversation
thanks @sindresorhus for landing edge support. any chance for you to review this? |
readme.md
Outdated
|
||
Open a new instance of the application(s) even if one is already running. | ||
|
||
On other platforms, this is always to open a new instance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be better written.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to For other platforms, this value is always to be true.
is this better?
newInstance
option for macOS
updated changes based on your comment, please help to review again. |
@sindresorhus Thank you for the great revise and quick review 👍 |
The open command in macOS will try to reuse existing instance by default.
Adding
open -n
will create a new instance no matter if there is existing instance or not.For Windows and Linux, the behavior are to create new instances anyway.
The PR proposes to add a macOS only
newInstance
option and by default it's false.Not sure if the change making sense or not. feel free to comment for better solution.