]> saetta.ns0.it Git - zakauthe/plugins/db/commitdiff
Other changes to work on a typical mingw/msys environment.
authorAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Wed, 27 Oct 2010 09:46:52 +0000 (11:46 +0200)
committerAndrea Zagli <a.zagli@comune.scandicci.fi.it>
Wed, 27 Oct 2010 09:46:52 +0000 (11:46 +0200)
src/aute_db.c

index 358f1bdad4656e1d88bd2183aa88ebf5a073b6ac..6bf003a86e77576cf4c5c6c6f84a9e7a58252063 100644 (file)
@@ -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