I use child_process spawn to start a new C# console app within my electron app. This new app then gets focus and the focus never returns to the electron app. What I would want to do is - when the C# app finishes its data collection and starts the data processing - to switch focus to the electron app and display a message there to wait , and then when the C# app is done, to have the electron app be notified again and change state to show that the C# app is done and where to find the resulting collection files.
Is there an electron API that would allow me to do this? Any pointers to docs would be great!
Let me know if you need more details as I didn’t know exactly what to provide. Or if the topic already exists (I searched but couldn’t find something similar)