-
Notifications
You must be signed in to change notification settings - Fork 128
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
Make app.launch() faster by introducing an option #212
Conversation
Nice, definitely feels more responsive than doing launch + focus 👍. |
@@ -613,6 +613,10 @@ end | |||
|
|||
- `force` (boolean): if set `true` force terminates the app | |||
|
|||
### Launch Optionals |
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.
The description for launch(String appName)
above should also be updated (sorry, GitHub doesn't let me comment there since it wasn't changed).
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.
app.launch() now takes an extra options parameter. If `focus` is set to true, then OC code will use NSWorkspaceLaunchDefault instead of NSWorkspaceLaunchWithoutActivation to call launchApplicationAtURL. The launched app will auto focus, and the speed will be noticeably faster.
@kasper could you please take a look at merge this and ship 2.6.2? 💯 |
Thanks! |
@txchen Sorry for the wait. Released! |
Thanks @kasper ! Now I can switch back to official release, yeah! |
app.launch() now takes an extra options parameter. If
focus
is set totrue, then OC code will use NSWorkspaceLaunchDefault instead of
NSWorkspaceLaunchWithoutActivation to call launchApplicationAtURL. The
launched app will auto focus, and the speed will be noticeably faster.