G_SPAWN_WIN32_HIDDEN_CONSOLE
This commit is contained in:
parent
f8d8e5141b
commit
6a4b09d219
@ -90,7 +90,7 @@ run_command (const char *command_template,
|
||||
error = NULL;
|
||||
}
|
||||
|
||||
if (command && !moo_spawn_command_line_async_with_flags (command, MOO_SPAWN_WIN32_HIDDEN_CONSOLE, &error))
|
||||
if (command && !moo_spawn_command_line_async_with_flags (command, G_SPAWN_WIN32_HIDDEN_CONSOLE, &error))
|
||||
{
|
||||
g_warning ("%s", moo_error_message (error));
|
||||
g_error_free (error);
|
||||
|
@ -120,7 +120,7 @@ cfunc__execute (lua_State *L)
|
||||
}
|
||||
|
||||
if (!g_spawn_sync (NULL, argv, NULL,
|
||||
(GSpawnFlags) (G_SPAWN_SEARCH_PATH | MOO_SPAWN_WIN32_HIDDEN_CONSOLE),
|
||||
(GSpawnFlags) (G_SPAWN_SEARCH_PATH | G_SPAWN_WIN32_HIDDEN_CONSOLE),
|
||||
NULL, NULL, NULL, NULL,
|
||||
&exit_status, &error))
|
||||
{
|
||||
|
@ -530,7 +530,7 @@ moo_cmd_run_command (MooCmd *cmd,
|
||||
else
|
||||
#endif
|
||||
{
|
||||
flags |= MOO_SPAWN_WIN32_HIDDEN_CONSOLE;
|
||||
flags |= G_SPAWN_WIN32_HIDDEN_CONSOLE;
|
||||
|
||||
if ((flags & G_SPAWN_STDOUT_TO_DEV_NULL) || (cmd_flags & MOO_CMD_STDOUT_TO_PARENT))
|
||||
outp = NULL;
|
||||
|
@ -546,7 +546,7 @@ run_sync (const char *base_cmd_line,
|
||||
{
|
||||
GError *error = NULL;
|
||||
gboolean result = FALSE;
|
||||
GSpawnFlags flags = (GSpawnFlags) (RUN_CMD_FLAGS | MOO_SPAWN_WIN32_HIDDEN_CONSOLE);
|
||||
GSpawnFlags flags = (GSpawnFlags) (RUN_CMD_FLAGS | G_SPAWN_WIN32_HIDDEN_CONSOLE);
|
||||
char **argv;
|
||||
char **real_env;
|
||||
char *cmd_line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user