findProgramInPath

Locates the first executable named @program in the user's path, in the same way that execvp() would locate it. Returns an allocated string with the absolute path name, or null if the program is not found in the path. If @program is already an absolute path, returns a copy of

Return

a newly-allocated string with the absolute path, or null

Parameters

program

a program name in the GLib file name encoding