Implement on Win32. Append the executable file name suffixes from PATHEXT

2001-03-01  Tor Lillqvist  <tml@iki.fi>

	* gutils.c(g_find_program_in_path): Implement on Win32. Append the
	executable file name suffixes from PATHEXT in turn while
	looking	for the program.
	(g_find_program_in_path): If the program we are looking for is a
	relative path in a subdirectory, don't do any path search.
This commit is contained in:
Tor Lillqvist
2001-03-01 10:25:12 +00:00
committed by Tor Lillqvist
parent b6ba941b50
commit 00988d0d76
12 changed files with 174 additions and 28 deletions

View File

@@ -1167,7 +1167,7 @@ main (int argc,
g_win32_get_package_installation_directory ("gtk20", NULL));
g_print ("found more.com as %s\n", g_find_program_in_path ("more.com"));
g_print ("found regedit.exe as %s\n", g_find_program_in_path ("regedit.exe"));
g_print ("found regedit as %s\n", g_find_program_in_path ("regedit"));
#endif