[evince] Do not hardcode BINDIR on Windows
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] Do not hardcode BINDIR on Windows
- Date: Sun, 20 Dec 2009 10:56:46 +0000 (UTC)
commit 0f39465dc52c56bc5c554a563f89d2f632ca54f0
Author: Hib Eris <hib hiberis nl>
Date: Fri Dec 18 21:01:57 2009 +0100
Do not hardcode BINDIR on Windows
shell/ev-application.c | 10 ++++++++++
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]