- printf ("Running spawn-test-win32-gui asynchronously again.\n"
- "This time talking to it through pipes. Click on the OK buttons.\n");
+ printf ("Now with G_SPAWN_FILE_AND_ARGV_ZERO.\n");
+
+ if (!g_shell_parse_argv ("'.\\spawn-test-win32-gui.exe' this-should-be-argv-zero nop", NULL, &argv, &err))
+ {
+ fprintf (stderr, "Error parsing command line? %s\n", err->message);
+ g_error_free (err);
+ exit (1);
+ }
+
+ if (!g_spawn_async (NULL, argv, NULL,
+ G_SPAWN_FILE_AND_ARGV_ZERO,
+ NULL, NULL, NULL,
+ &err))
+ {
+ fprintf (stderr, "Error: %s\n", err->message);
+ g_error_free (err);
+ exit (1);
+ }
+
+ printf ("Now talking to it through pipes.\n");