[evolution] [win32] Set patch to evolution's bindir because some child processes need it in some situations.



commit 8b53dacec60eb150d376cc90c571540fb32a6af4
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Mon May 10 22:51:11 2010 +0200

    [win32] Set patch to evolution's bindir because some child processes
    need it in some situations.

 shell/main.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index eba992e..60871e6 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -410,6 +410,8 @@ main (gint argc, gchar **argv)
 	GError *error = NULL;
 
 #ifdef G_OS_WIN32
+	gchar *path;
+
 	if (fileno (stdout) != -1 && _get_osfhandle (fileno (stdout)) != -1) {
 		/* stdout is fine, presumably redirected to a file or pipe */
 	} else {
@@ -426,6 +428,13 @@ main (gint argc, gchar **argv)
 			dup2 (fileno (stderr), 2);
 		}
 	}
+	
+	path = g_build_path (";", _e_get_bindir (), g_getenv ("PATH"), NULL);
+
+	if (!g_setenv ("PATH", path, TRUE))
+		g_warning ("Could not set PATH for Evolution and its child processes");
+
+	g_free (path);	
 #endif
 
 	/* Make ElectricFence work.  */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]