diff options
Diffstat (limited to 'src/spawn.c')
| -rw-r--r-- | src/spawn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/spawn.c b/src/spawn.c index 507d1cd..6289830 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -176,6 +176,8 @@ teco_parse_shell_command_line(const gchar *cmdline, GError **error) * As a workaround, only pass down absolute paths. * This is not perfect: It will use $PATH from the environment, * so you cannot overwrite it from within SciTECO. + * On the other hand we're not currently using + * G_SPAWN_SEARCH_PATH_FROM_ENVP anyway. */ gchar *program = g_find_program_in_path(argv[0]); if (!program) { @@ -270,6 +272,7 @@ teco_state_execute_done(teco_machine_main_t *ctx, teco_string_t str, GError **er * NOTE: With G_SPAWN_LEAVE_DESCRIPTORS_OPEN and without G_SPAWN_SEARCH_PATH_FROM_ENVP, * Glib offers an "optimized codepath" on UNIX. * G_SPAWN_SEARCH_PATH_FROM_ENVP does not appear to work on Windows, anyway. + * On the other hand, this means you cannot overwrite $PATH via Q-Registers. */ static const GSpawnFlags flags = G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH | #ifdef G_OS_UNIX |
