We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44a6cbf commit fdffb2dCopy full SHA for fdffb2d
app/src/processing/app/helpers/ProcessUtils.java
@@ -1,9 +1,10 @@
1
package processing.app.helpers;
2
3
-import java.io.IOException;
4
-
5
import processing.app.Base;
6
+import java.io.IOException;
+import java.util.Map;
7
+
8
public class ProcessUtils {
9
10
public static Process exec(String[] command) throws IOException {
@@ -20,6 +21,10 @@ public static Process exec(String[] command) throws IOException {
20
21
String[] cmdLine = new String[command.length];
22
for (int i = 0; i < command.length; i++)
23
cmdLine[i] = command[i].replace("\"", "\\\"");
- return Runtime.getRuntime().exec(cmdLine);
24
25
+ ProcessBuilder pb = new ProcessBuilder(cmdLine);
26
+ Map<String, String> env = pb.environment();
27
+ env.put("CYGWIN", "nodosfilewarning");
28
+ return pb.start();
29
}
30
0 commit comments