diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2006-09-12 21:57:14 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2006-09-12 21:57:14 +0000 |
| commit | 99b1e9001292af77742db0f344830cd3e2e50acd (patch) | |
| tree | 5a268492b2ab98dee2b17f75c2903cc8a5055ae7 /src/extension/dependency.cpp | |
| parent | fix crash 1544495 when closing a document with mask/clippath: it makes no sen... (diff) | |
| download | inkscape-99b1e9001292af77742db0f344830cd3e2e50acd.tar.gz inkscape-99b1e9001292af77742db0f344830cd3e2e50acd.zip | |
Extension dependency-check now also finds win32 executables if ".exe" is omitted in inx-file.
(bzr r1702)
Diffstat (limited to 'src/extension/dependency.cpp')
| -rw-r--r-- | src/extension/dependency.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |
