X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fpaths.h;h=7c43682d576c4657a44f7b907e87e99ed24a3cee;hb=3121146eccd031a56d410eb48f3002558f41b40a;hp=a6e32ae1bc0737296653eca217763fe58d8fabb5;hpb=0dc7eca4cdfff6425e19a0bace0f9ae8834d04e8;p=chaz%2Fopenbox diff --git a/obt/paths.h b/obt/paths.h index a6e32ae1..7c43682d 100644 --- a/obt/paths.h +++ b/obt/paths.h @@ -25,7 +25,7 @@ G_BEGIN_DECLS typedef struct _ObtPaths ObtPaths; -ObtPaths* obt_paths_new(); +ObtPaths* obt_paths_new(void); void obt_paths_ref(ObtPaths *p); void obt_paths_unref(ObtPaths *p); @@ -34,11 +34,17 @@ const gchar* obt_paths_data_home(ObtPaths *p); const gchar* obt_paths_cache_home(ObtPaths *p); GSList* obt_paths_config_dirs(ObtPaths *p); GSList* obt_paths_data_dirs(ObtPaths *p); +GSList* obt_paths_autostart_dirs(ObtPaths *p); 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