From 0f39465dc52c56bc5c554a563f89d2f632ca54f0 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Fri, 18 Dec 2009 21:01:57 +0100 Subject: [PATCH] Do not hardcode BINDIR on Windows --- shell/ev-application.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) { -- 2.43.5