Skip to content

Commit 9a5caf3

Browse files
committed
tweak Windows and Linux versions
1 parent 83de1f1 commit 9a5caf3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/processing/app/Base.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,8 +1784,14 @@ public void handleRestart() {
17841784
// -n allows more than one instance to be opened at a time
17851785
"open", "-n", "-a", app.getAbsolutePath()
17861786
});
1787+
} else if (Platform.isLinux()) {
1788+
p = Runtime.getRuntime().exec(new String[] {
1789+
app.getAbsolutePath()
1790+
});
17871791
} else {
1788-
p = PApplet.launch(app.getAbsolutePath());
1792+
p = Runtime.getRuntime().exec(new String[] {
1793+
"cmd", "/c", app.getAbsolutePath()
1794+
});
17891795
}
17901796
System.out.println("launched with result " + p.waitFor());
17911797
System.out.flush();

0 commit comments

Comments
 (0)