[eel-platform] GeneralCommandLine: exe arg for eel should be normalized before running

GitOrigin-RevId: e4f0253884a242b1d56d884e44e71707fad707a7
This commit is contained in:
Andrii Zinchenko
2025-02-11 10:32:42 +00:00
committed by intellij-monorepo-bot
parent d651b30b3f
commit ac186fbc3e
@@ -265,7 +265,7 @@ object ExecUtil {
@JvmStatic
fun EelExecApi.startProcessBlockingUsingEel(builder: ProcessBuilder, pty: LocalPtyOptions?): Process {
val args = builder.command()
val exe = args.first()
val exe = args.first().let { exe -> runCatching { Path.of(exe).asEelPath().toString() }.getOrNull() ?: exe }
val rest = args.subList(1, args.size)
val env = builder.environment()
val workingDir = builder.directory()?.toPath()?.asEelPath()