From: Hib Eris Date: Fri, 18 Dec 2009 20:01:57 +0000 (+0100) Subject: Do not hardcode BINDIR on Windows X-Git-Tag: EVINCE_2_29_4~5 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0f39465dc52c56bc5c554a563f89d2f632ca54f0;p=evince.git Do not hardcode BINDIR on Windows --- diff --git a/shell/ev-application.c b/shell/ev-application.c index 812adae4..9fe6596a 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -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) {