From: johanengelen Date: Tue, 12 Sep 2006 21:57:14 +0000 (+0000) Subject: Extension dependency-check now also finds win32 executables if ".exe" is omitted... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7cc346bf8dd955fd98e2c6b92225bb28487f15ca;p=inkscape.git Extension dependency-check now also finds win32 executables if ".exe" is omitted in inx-file. --- diff --git a/src/extension/dependency.cpp b/src/extension/dependency.cpp index 473c6dc62..109d5ed12 100644 --- a/src/extension/dependency.cpp +++ b/src/extension/dependency.cpp @@ -212,8 +212,17 @@ Dependency::check (void) const g_free(orig_path); return TRUE; } + // give it a 2nd try with ".exe" added + gchar * final_name_exe = g_strdup_printf ("%s.exe", final_name); + if (Glib::file_test(final_name_exe, filetest)) { + g_free(final_name); + g_free(final_name_exe); + g_free(orig_path); + return TRUE; + } g_free(final_name); + g_free(final_name_exe); } g_free(orig_path);