Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-application.c
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-12-18 20:01:57 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-12-20 10:56:06 (GMT)
commit0f39465dc52c56bc5c554a563f89d2f632ca54f0 (patch)
tree8f159f025377b4144f8028b16c2f1badb1d19968 /shell/ev-application.c
parent638301e107cdf4eb8368db9beca7ec6755778c2c (diff)
Do not hardcode BINDIR on Windows
Diffstat (limited to 'shell/ev-application.c')
-rw-r--r--shell/ev-application.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 812adae..9fe6596 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) {