use G_SPAWN_SEARCH_PATH

This commit is contained in:
Daniel Micay 2012-05-23 23:44:37 -04:00
parent ae5857c944
commit 4dc5aedbe7
1 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ int main(int argc, char **argv) {
GPid ppid; GPid ppid;
if (g_spawn_async(NULL, command_argv, NULL, if (g_spawn_async(NULL, command_argv, NULL,
G_SPAWN_DO_NOT_REAP_CHILD, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH,
(GSpawnChildSetupFunc)vte_pty_child_setup, pty, (GSpawnChildSetupFunc)vte_pty_child_setup, pty,
&ppid, &error)) { &ppid, &error)) {
vte_terminal_watch_child(VTE_TERMINAL(vte), ppid); vte_terminal_watch_child(VTE_TERMINAL(vte), ppid);
@ -148,9 +148,9 @@ int main(int argc, char **argv) {
#ifdef CLICKABLE_URL #ifdef CLICKABLE_URL
int tmp = vte_terminal_match_add_gregex(VTE_TERMINAL(vte), int tmp = vte_terminal_match_add_gregex(VTE_TERMINAL(vte),
g_regex_new(url_regex, g_regex_new(url_regex,
G_REGEX_CASELESS, G_REGEX_CASELESS,
G_REGEX_MATCH_NOTEMPTY, G_REGEX_MATCH_NOTEMPTY,
NULL), NULL),
0); 0);
vte_terminal_match_set_cursor_type(VTE_TERMINAL(vte), tmp, GDK_HAND2); vte_terminal_match_set_cursor_type(VTE_TERMINAL(vte), tmp, GDK_HAND2);
g_signal_connect(vte, "button-press-event", G_CALLBACK(button_press_cb), NULL); g_signal_connect(vte, "button-press-event", G_CALLBACK(button_press_cb), NULL);