wmmenugen: Add executable detection, make Wmconfig use it

Add fileInPath, which determines whether or not a given file exists
in $PATH (some heuristics apply).

Make the Wconfig parser use it.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ authored and Carlos R. Mafra committed 2010-10-10 19:34:45 +02:00
1 parent 0451160f7d
commit 5377ec8fba
3 files changed
+50 -2

No files matched your search

+1
View File
@@ -51,6 +51,7 @@ char *env_lang, *env_ctry, *env_enc, *env_mod;
*/
void parse_locale(const char *what, char **env_lang, char **env_ctry, char **env_enc, char **env_mod);
char *find_terminal_emulator(void);
Bool fileInPath(const char *file);
/* implemented parsers
*/