From 1b92cfb2bbf50f3661d50cce0973fc2a8d71f77a Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 27 Oct 2010 11:46:52 +0200 Subject: [PATCH] Other changes to work on a typical mingw/msys environment. --- src/aute_db.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/aute_db.c b/src/aute_db.c index 358f1bd..6bf003a 100644 --- a/src/aute_db.c +++ b/src/aute_db.c @@ -419,15 +419,16 @@ gchar p = g_strrstr (moddir, g_strdup_printf ("%c", G_DIR_SEPARATOR)); if (p != NULL - && g_ascii_strcasecmp (p + 1, "src") == 0) + && (g_ascii_strcasecmp (p + 1, "src") == 0 + || g_ascii_strcasecmp (p + 1, ".libs") == 0)) { GUIDIR = g_build_filename ("/mingw", "share", "libaute-db", "gui", NULL); FORMDIR = g_build_filename ("/mingw", "share", "libaute-db", "form", NULL); } else { - GUIDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-db", "gui", NULL); - FORMDIR = g_build_filename (g_win32_get_package_installation_directory_of_module (NULL), "share", "libaute-db", "form", NULL); + GUIDIR = g_build_filename (moddir, "share", "libaute-db", "gui", NULL); + FORMDIR = g_build_filename (moddir, "share", "libaute-db", "form", NULL); } #endif -- 2.49.0