aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bf25c73..d14e2e5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -247,6 +247,12 @@ initialize_environment(const gchar *program)
g_setenv("HOME", abs_path, TRUE);
g_free(abs_path);
+#ifdef G_OS_WIN32
+ g_setenv("COMSPEC", "cmd.exe", FALSE);
+#elif defined(G_OS_UNIX) || defined(G_OS_HAIKU)
+ g_setenv("SHELL", "/bin/sh", FALSE);
+#endif
+
/*
* Initialize $SCITECOCONFIG and $SCITECOPATH
*/