How to specify working directory with FMonitoredProcess

Hi,

I have duplicated FMonitoredProcess class from the engine source because I wasn’t able to specify a working directory from where my application is launched.

My application is in a subfolder and need to access files from this location. But since FMonitoredProcess class use FPlatformProcess::CreateProc with FPaths::RootDir() as working directory in it’s parameter list, my app can not locate it resources.

I would like to know if there is a way to specify the working directory without duplicating this class or if there is a plan be able to specify the working directory in a near future with FMonitoredProcess class.

Thanks

Hi ! Have you made any progress on this topic ?
It is really annoying that there is a Working directory parameter in the FPlatformProcess::CreateProc method but not the FMonitoredProc constructor…

Thanks

I just check and it’s look like that 4.21 it’s still not possible to specify the working directory.

It really sucks… This should be a basic feature…

I ended up to duplicate this class and added a working directory parameter in the constructor.