X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2FExternalTools.java;h=22291fb122968331a6f1a52b28d4f9fc56782cb7;hp=36c496a6e24229603769d5ff8405cc397ff645f8;hb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;hpb=52bf9e8686c916be37a26a0b75340393d4478b05 diff --git a/tim/prune/ExternalTools.java b/tim/prune/ExternalTools.java index 36c496a..22291fb 100644 --- a/tim/prune/ExternalTools.java +++ b/tim/prune/ExternalTools.java @@ -37,6 +37,15 @@ public abstract class ExternalTools return check("gpsbabel -V"); } + /** + * Attempt to call gnuplot to see if it's installed / available in path + * @return true if found, false otherwise + */ + public static boolean isGnuplotInstalled() + { + return check(Config.getGnuplotPath() + " -V"); + } + /** * Attempt to call the specified command * @return true if found, false otherwise