diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-06 06:46:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-06 06:46:56 +0000 |
commit | 8f444056099876aa36382824e637ad2084dc9c4c (patch) | |
tree | 4ebb11e6067c8f0aa36a7c1bc61190c17be9fb46 /src/main.c | |
parent | 1a7f6613d085c21ab1e5eee599b41a77ceffc93d (diff) |
win32: include startup directory into %PATH% for GSpawn.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@623 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -367,10 +367,21 @@ static gint get_queued_message_num(void) static void app_init(void) { +#ifdef G_OS_WIN32 + gchar *newpath; +#endif + + setlocale(LC_ALL, ""); + prog_version = PROG_VERSION; startup_dir = g_get_current_dir(); - setlocale(LC_ALL, ""); +#ifdef G_OS_WIN32 + /* include startup directory into %PATH% for GSpawn */ + newpath = g_strconcat(startup_dir, ";", g_getenv("PATH"), NULL); + g_setenv("PATH", newpath, TRUE); + g_free(newpath); +#endif if (g_path_is_absolute(LOCALEDIR)) bindtextdomain(PACKAGE, LOCALEDIR); |