summaryrefslogtreecommitdiff
path: root/obt/paths.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-03-29 22:32:07 -0400
committerDana Jansens <danakj@orodu.net>2010-03-29 22:32:07 -0400
commit67bed35b7c1b1c9470aa8d0ba33974eabd66e089 (patch)
treec3d3f5ae22d713b03184ac5b966520761072b110 /obt/paths.h
parentd35605823736410c4910ec1affe9563e4e8a8769 (diff)
add obt_paths_try_exec() that will see if an executable exists
Diffstat (limited to 'obt/paths.h')
-rw-r--r--obt/paths.h5
1 files changed, 5 insertions, 0 deletions
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