platform: load Mac environment from interactive login shell

This commit is contained in:
Roman Shevchenko
2013-12-06 16:23:53 +01:00
parent 0c96a73453
commit 639449ed5a
@@ -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);