mhulden / foma

Automatically exported from code.google.com/p/foma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't require GraphViz GUI app on MacOS

reynoldsnlp opened this issue · comments

$ foma -v
foma 0.10.0alpha

I have graphviz installed (via MacPorts) on my machine:

$ type dot
dot is hashed (/opt/local/bin/dot)

However, after adding rules in the REPL, when I type view net I get the following:

foma[1]: view net
foma[1]: Unable to find application named 'Graphviz'

The code requires the GUI app, rather than the command line utilities: https://github.com/mhulden/foma/blob/master/foma/iface.c#L1704. This seems unnecessary.

The code should call dot or other algorithms directly. The MacPorts graphviz package is a dependency of graphviz-gui so the command line utilities would be present in either case.

Really, Mac should be exactly the same as Linux except that it would use open instead of xdg-open.

I fully agree and provided a pull request #81 with same suggestion. MacOS users of foma should be able to install graphviz via macports or brew. I don't think that GraphViz will be back soonish as a simple installable package under MacOS (if I understand correctly).