Skip to content

Commit 91532f9

Browse files
committed
Make the CaDoodle launcher work on MacOS
1 parent e962d43 commit 91532f9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ public class CaDoodleExternalEditor implements IExternalEditor {
4141
public void launch(File file, Button advanced) {
4242
new Thread(() -> {
4343
this.advanced = advanced;
44-
String filename = file.getAbsolutePath();
44+
String filename = "\""+file.getAbsolutePath()+"\"";
4545

4646
try {
4747
File dir = file.getAbsoluteFile().getParentFile();
48-
File openscad = DownloadManager.getRunExecutable("cadoodle", null);
48+
File openscad;
49+
if(OSUtil.isOSX()) {
50+
openscad = DownloadManager.getConfigExecutable("cadoodle", null);
51+
}else {
52+
openscad = DownloadManager.getRunExecutable("cadoodle", null);
53+
}
4954

5055
List<String> asList = Arrays.asList(
5156
openscad.getAbsolutePath(),

0 commit comments

Comments
 (0)