aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2010-05-19 22:22:23 +0800
committerMichael Meeks <michael.meeks@novell.com>2010-05-19 22:22:23 +0800
commit9a718fdc54a11ffc2dfe90a1c03d832fe151c2e1 (patch)
treee4815398dbd17e1b87f8bf220b106e5a017e1179 /shell
parent2566a8549d7fd878226aeb9269f2d5871a5eddc2 (diff)
parentea1a5fca456b891f8bb9ab248ad65651b66b54b2 (diff)
downloadgsoc2013-evolution-9a718fdc54a11ffc2dfe90a1c03d832fe151c2e1.tar.gz
gsoc2013-evolution-9a718fdc54a11ffc2dfe90a1c03d832fe151c2e1.tar.zst
gsoc2013-evolution-9a718fdc54a11ffc2dfe90a1c03d832fe151c2e1.zip
Merge commit 'origin/express2' into express2
Diffstat (limited to 'shell')
-rw-r--r--shell/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/main.c b/shell/main.c
index e327065f43..90d534f5d4 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -442,6 +442,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 {
@@ -458,6 +460,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. */