]> www.fi.muni.cz Git - evince.git/commitdiff
Do not hardcode BINDIR on Windows
authorHib Eris <hib@hiberis.nl>
Fri, 18 Dec 2009 20:01:57 +0000 (21:01 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 20 Dec 2009 10:56:06 +0000 (11:56 +0100)
shell/ev-application.c

index 812adae4d89517ac96a488344011dc92db8170f1..9fe6596acc64eae059e3c5482b8662940a0f46e7 100644 (file)
@@ -408,7 +408,17 @@ ev_spawn (const char     *uri,
        gboolean res;
        GError  *error = NULL;
 
+#ifdef G_OS_WIN32
+{
+       gchar *dir;
+
+       dir = g_win32_get_package_installation_directory_of_module (NULL);
+       argv[arg++] = g_build_filename (dir, "bin", "evince", NULL);
+       g_free (dir);
+}
+#else
        argv[arg++] = g_build_filename (BINDIR, "evince", NULL);
+#endif
 
        /* Page label */
        if (dest) {