aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-05-11 04:51:11 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-05-11 04:53:05 +0800
commitcc87be2984b6d4d76b257c148e5a3d7ed8ec2771 (patch)
tree06c032892fc30356c31f5f8264c6d8e3a4b73ceb /shell/main.c
parente9fb31dd4238dfb940a2a089d16162bd9a3ea0c6 (diff)
downloadgsoc2013-evolution-cc87be2984b6d4d76b257c148e5a3d7ed8ec2771.tar.gz
gsoc2013-evolution-cc87be2984b6d4d76b257c148e5a3d7ed8ec2771.tar.zst
gsoc2013-evolution-cc87be2984b6d4d76b257c148e5a3d7ed8ec2771.zip
[win32] Set patch to evolution's bindir because some child processes
need it in some situations.
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c9
1 files changed, 9 insertions, 0 deletions
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. */