Open doverradio opened 5 years ago
open
give you a sub process, you can call it to kill itself. Unfortunately, that sub process create another process, which should be killed.
@sindresorhus Do you think that it is possible to resolve with sub process of start
command(on window)?
@Hongarc can you give an example?
The main process
create a new process (A
)
A
process creates another process(B
, the application you want here)
You can close A
process but I don't know how to close B
process
(you can add argument for B process but to get it)
Any ideas? Facing the same issue here
also curious about this. I would love to open a chrome tab and then close it when my program (static file server) exits.
Is there any solution? Got stuck here too!
Yeap, same problem here!
EDIT: So I tried calling kill on the item it returns, via tree-kill, but still doesn't work
Hello, I was able to successfully open up a program using your library in Windows 10. Here is the code:
However, it's not clear how to close this once I've completed the tasks I need within that opened program.
How do I close this after I've completed using the opened program?