Mercurial > pidgin
changeset 4885:1bf59e3ac4ff
[gaim-migrate @ 5215]
this makes the browser command work with or without the %s. Enjoy!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 25 Mar 2003 01:29:37 +0000 |
parents | 5496d1704ee0 |
children | f0140b7e10a0 |
files | src/browser.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser.c Tue Mar 25 01:20:36 2003 +0000 +++ b/src/browser.c Tue Mar 25 01:29:37 2003 +0000 @@ -570,9 +570,12 @@ space_free_url = g_strdup(url); g_strdelimit(space_free_url, " ", '+'); - command = g_strdup_printf("%s %s", web_command, space_free_url); - g_free(space_free_url); - } break; + if(strstr(web_command, "%s")) + command = g_strdup_printf(web_command, space_free_url); + else + command = g_strdup_printf("%s %s", web_command, space_free_url); + g_free(space_free_url); + } break; } if (g_spawn_command_line_async(command, &error) == FALSE) {