mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[eel-platform] GeneralCommandLine: exe arg for eel should be normalized before running
GitOrigin-RevId: e4f0253884a242b1d56d884e44e71707fad707a7
This commit is contained in:
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()
|
||||
|
||||
Reference in New Issue
Block a user