From 67bed35b7c1b1c9470aa8d0ba33974eabd66e089 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 29 Mar 2010 22:32:07 -0400 Subject: add obt_paths_try_exec() that will see if an executable exists --- obt/paths.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'obt/paths.h') diff --git a/obt/paths.h b/obt/paths.h index 6d6df5e7..7c43682d 100644 --- a/obt/paths.h +++ b/obt/paths.h @@ -40,6 +40,11 @@ gchar *obt_paths_expand_tilde(const gchar *f); gboolean obt_paths_mkdir(const gchar *path, gint mode); gboolean obt_paths_mkdir_path(const gchar *path, gint mode); +/*! Returns TRUE if the @path points to an executable file. + If the @path is not an absolute path, then it is searched for in $PATH. +*/ +gboolean obt_paths_try_exec(ObtPaths *p, const gchar *path); + G_END_DECLS #endif -- cgit v1.2.3