comparison main.c @ 478:4dca76db9e1f

Fix opening of browser windows on UNIX.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 26 May 2012 08:18:52 +0300
parents 4ddc3d87242e
children 73a648387d10
comparison
equal deleted inserted replaced
477:2df068006fa9 478:4dca76db9e1f
620 else if (pid == 0) 620 else if (pid == 0)
621 { 621 {
622 dup2(fds[1], STDOUT_FILENO); 622 dup2(fds[1], STDOUT_FILENO);
623 dup2(fds[0], STDERR_FILENO); 623 dup2(fds[0], STDERR_FILENO);
624 char *url = th_strdup_printf("openurl(%s,new-tab)", uri); 624 char *url = th_strdup_printf("openurl(%s,new-tab)", uri);
625 execlp(setBrowser, setBrowser, "-remote", uri, (void *)NULL); 625 execlp(setBrowser, setBrowser, "-remote", url, (void *)NULL);
626 th_free(url); 626 th_free(url);
627 _exit(errno); 627 _exit(errno);
628 } 628 }
629 629
630 wait(&status); 630 wait(&status);