find_program_in_path


Description:


[ Version ( since = "1.1" ) ]
public Future find_program_in_path (string program)

Locates the first executable named program in the user’s path.

This runs [func@GLib.find_program_in_path] on a dedicated thread.

Parameters:

program

the name of the executable such as "grep"

Returns:

a [class@Dex.Future] that resolves to a string containing the path or rejects with error.


Namespace: Dex
Package: libdex-1