From cc87be2984b6d4d76b257c148e5a3d7ed8ec2771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fridrich=20=C5=A0trba?= Date: Mon, 10 May 2010 22:51:11 +0200 Subject: [win32] Set patch to evolution's bindir because some child processes need it in some situations. --- shell/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shell/main.c b/shell/main.c index e3d69412a6..3ab0e9a709 100644 --- a/shell/main.c +++ b/shell/main.c @@ -435,6 +435,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 { @@ -451,6 +453,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. */ -- cgit v1.2.3