I have a C# app that runs in Linux. It must, at some point, start another app as a separate process, and then exit itself.
Every time I try to do this, the new process dies with the old one. I've tried various settings in the ProcessStartInfo, but nothing seems to help.
Here's what I'm currently doing:
var procStartInfo = new ProcessStartInfo( program, arguments )
{
UseShellExecute = true,
WorkingDirectory = workingDir
};
_ = Process.Start( procStartInfo );
When I do this, both apps end when the launching app ends.