The native "new window" menu item is not working as expected in Ubuntu:
Fixes WS-1067
What changed
Fix "New Window" menu item on Linux by handling the corresponding "second-instance" event that gets emitted appropriately. I'm sure there's a "proper" way to do this that I'm not figuring out yet (the docs are really bad around this and can't find anything relevant) such as relaunching the app with the flags they pass in, but this works as expected for now.
For context, this is what the event looks like when it's emitted (we currently ignore because the last param which is supposed to be a URL according to the docs is not a valid URL):
Test plan
Open new window when native "new window" event is received in Ubuntu.
Why
The native "new window" menu item is not working as expected in Ubuntu:
Fixes WS-1067
What changed
Fix "New Window" menu item on Linux by handling the corresponding "second-instance" event that gets emitted appropriately. I'm sure there's a "proper" way to do this that I'm not figuring out yet (the docs are really bad around this and can't find anything relevant) such as relaunching the app with the flags they pass in, but this works as expected for now.
For context, this is what the event looks like when it's emitted (we currently ignore because the last param which is supposed to be a URL according to the docs is not a valid URL):
Test plan
Open new window when native "new window" event is received in Ubuntu.