Skip to content

Commit 8d0c6ec

Browse files
committed
adding the Mac preamble
1 parent 052048d commit 8d0c6ec

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/external/SVGExternalEditor.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.net.MalformedURLException;
88
import java.net.URL;
99
import java.util.Arrays;
10+
import java.util.List;
1011

1112
import org.eclipse.jgit.api.Git;
1213
import org.eclipse.jgit.api.errors.GitAPIException;
@@ -41,7 +42,12 @@ public void launch(File file, Button advanced) {
4142

4243
File exe = DownloadManager.getRunExecutable("inkscape", null);
4344

44-
Thread t=run(this, dir, System.err, Arrays.asList(exe.getAbsolutePath(), filename));
45+
List<String> asList = Arrays.asList(exe.getAbsolutePath(), filename);
46+
if(isMac()) {
47+
asList = Arrays.asList("open","-a",exe.getAbsolutePath(), filename);
48+
49+
}
50+
Thread t=run(this, dir, System.err, asList);
4551
t.join();
4652
} catch (NoWorkTreeException e) {
4753
// TODO Auto-generated catch block

0 commit comments

Comments
 (0)