Windows: add a debug to show the command as it is run

This commit is contained in:
Colomban Wendling 2014-02-03 15:40:37 +01:00
parent 5c893e9b0e
commit 6af27eeb7a

View File

@ -1052,6 +1052,7 @@ gboolean win32_spawn(const gchar *dir, gchar **argv, gchar **env, GSpawnFlags fl
command = g_strjoinv(" ", argv); command = g_strjoinv(" ", argv);
SETPTR(command, g_strdup_printf("cmd.exe /S /C \"%s >%s 2>%s\"", SETPTR(command, g_strdup_printf("cmd.exe /S /C \"%s >%s 2>%s\"",
command, tmp_file, tmp_errfile)); command, tmp_file, tmp_errfile));
geany_debug("WIN32: actually running command:\n%s", command);
g_chdir(dir); g_chdir(dir);
ret = system(command); ret = system(command);
/* the command can return -1 as an exit code, so check errno also */ /* the command can return -1 as an exit code, so check errno also */