mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
platform: load Mac environment from interactive login shell
This commit is contained in:
@@ -152,7 +152,7 @@ public class EnvironmentUtil {
|
||||
|
||||
File envFile = FileUtil.createTempFile("intellij-shell-env", null, false);
|
||||
try {
|
||||
String[] command = {shell, "-l", "-c", "'" + reader.getAbsolutePath() + "' '" + envFile.getAbsolutePath() + "'"};
|
||||
String[] command = {shell, "-l", "-i", "-c", ("'" + reader.getAbsolutePath() + "' '" + envFile.getAbsolutePath() + "'")};
|
||||
LOG.info("loading shell env: " + StringUtil.join(command, " "));
|
||||
|
||||
Process process = Runtime.getRuntime().exec(command);
|
||||
|
||||
Reference in New Issue
Block a user