Skip to content

Commit

Permalink
adding the Mac preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 2, 2024
1 parent 052048d commit 8d0c6ec
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;

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

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

Thread t=run(this, dir, System.err, Arrays.asList(exe.getAbsolutePath(), filename));
List<String> asList = Arrays.asList(exe.getAbsolutePath(), filename);
if(isMac()) {
asList = Arrays.asList("open","-a",exe.getAbsolutePath(), filename);

}
Thread t=run(this, dir, System.err, asList);
t.join();
} catch (NoWorkTreeException e) {
// TODO Auto-generated catch block
Expand Down

0 comments on commit 8d0c6ec

Please sign in to comment.