1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00

fix: add some hard-coded dot path for MacOS

https://github.com/plantuml/plantuml/issues/1583
This commit is contained in:
Arnaud Roques 2023-10-20 15:44:00 +02:00
parent 4adacbabe5
commit 1e6ffb0bec

View File

@ -48,10 +48,10 @@ class GraphvizLinux extends AbstractGraphviz {
@Override
protected File specificDotExe() {
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/usr/bin/dot"),
new File("/opt/homebrew/bin/dot") };
final File all[] = new File[] { new File("/usr/local/bin/dot"), new File("/opt/homebrew/bin/dot"),
new File("/opt/homebrew/opt/graphviz/bin/dot"), new File("/usr/bin/dot") };
for (File f : all)
if (f.exists())
if (f.exists() && f.canRead() && f.canExecute())
return f;
return new File("/opt/local/bin/dot");
}