JetBrains / pty4j

Pty for Java
Eclipse Public License 1.0
356 stars 112 forks source link

propagate pty4j.preferred.native.folder to external process #127

Closed develar closed 2 years ago

segrey commented 2 years ago

@develar Could you please describe the case you're fixing?

develar commented 2 years ago

Native library files (.so, .dll) maybe available only as unpacked into some dir, so, if pty4j starts some external process, pty4j.preferred.native.folder must be also propagated.

segrey commented 2 years ago

Actually, pty4j.preferred.native.folder system property is not needed by ConsoleProcessListChildProcessMain as it doesn't use it. But it uses JNA, so jna.boot.library.path and jna.nounpack are propogated to the child process. Fixed by 719adc918c06b1f3b88fc74c8b02912bfae21b88