Bug 295874 - automatically find installed graphviz package
Summary: automatically find installed graphviz package
Status: CONFIRMED
Alias: None
Product: kcachegrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Josef Weidendorfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 22:13 UTC by Patrick Spendrin
Modified: 2012-03-13 07:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Spendrin 2012-03-12 22:13:22 UTC
The graphviz installer doesn't add itself to the path, so kcachegrind should try and get the location from the windows registry and use that information to call the tools.
The information needed for that can be found in HKLM\SOFTWARE\Wow6432Node\AT&T Research Labs\Graphviz or HKLM\SOFTWARE\AT&T Research Labs\Graphviz which contains a key InstallPath. In the subdirectory bin of the InstallPath you can find the required tools.
Since rereading the information on every refresh is probably a stupid idea, one might want to store the results.
Comment 1 Josef Weidendorfer 2012-03-13 00:23:43 UTC
This seems to be very specific to the packaging of GraphViz.
I can imagine that there are multiple GraphViz packages
around, and not all set this key? Which package are you
telling about here?
Another option would be for the kcachegrind package to
be bundled with a local copy of "dot.exe" (ie. not a problem
to fix in source code).

Anyway, not sure how to look up a registry key, and I also
can not test it. Can you try to come up with a patch?
Comment 2 Patrick Spendrin 2012-03-13 07:50:54 UTC
yes, I didn't get the patch ready yesterday, will come in the next days.