Commit 2e698605 authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist
Browse files

Don't crash if gimp.exe isn't found in PATH either.

2005-05-23  Tor Lillqvist  <tml@novell.com>

	* gimptool-win32.c.in (get_prefix): Don't crash if gimp.exe isn't
	found in PATH either.
parent 1506480d
2005-05-23 Tor Lillqvist <tml@novell.com>
* gimptool-win32.c.in (get_prefix): Don't crash if gimp.exe isn't
found in PATH either.
2005-05-22 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/Makefile.am: changed gimpwidgetsenums.c rule to
......
......@@ -140,6 +140,8 @@ get_prefix (gchar slash)
if (path == NULL)
path = g_find_program_in_path ("gimp.exe");
if (path != NULL)
{
r = strrchr (path, G_DIR_SEPARATOR);
if (r != NULL)
{
......@@ -160,6 +162,7 @@ get_prefix (gchar slash)
return prefix;
}
}
}
fprintf (stderr, "Cannot determine GIMP @GIMP_APP_VERSION@ installation location\n");
exit (1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment