sindresorhus/opn
Do you want to work on this issue?
You can request for a bounty in order to promote it!
[bug] open doesn't close the app and the socket on mac and linux #287
KarishmaGhiya posted onGitHub
Issue description :
- The
open
dependency doesn't close the socket even after the app has closed on Mac and Linux
Reproduce steps -
Scenario 1
open("https://google.com", { wait: true }).then(() => console.log('closed'))
The above doesn't close the socket and doesn't print "closed" on Mac and Linux OS. Works as expected on windows
Scenario 2
When we use the newInstance
argument, it opens on a new browser tab on MacOS but closes the socket as expected. However, no such workaround is available for linux OS.
open("https://google.com", { newInstance: true, wait: true }).then(() => console.log('closed'))
cc: @mpodwysocki