Mercurial > pidgin.yaz
changeset 8278:b00f3ac97c1f
[gaim-migrate @ 9002]
Mooga booga
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 17 Feb 2004 06:13:00 +0000 |
parents | e6ed38d28636 |
children | 319448d52b33 |
files | src/gtknotify.c |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Tue Feb 17 04:46:53 2004 +0000 +++ b/src/gtknotify.c Tue Feb 17 06:13:00 2004 +0000 @@ -408,19 +408,21 @@ GError *error = NULL; gint ret = 0; + gaim_debug_misc("gtknotify", "Executing %s\n", command); + if (!gaim_program_is_valid(command)) { - gchar *tmp = g_strdup_printf(_("The browser \"%s\" is invalid."), - command); + gchar *tmp = g_strdup_printf(_("The browser command \"%s\" is invalid."), + command); gaim_notify_error(NULL, NULL, _("Unable to open URL"), tmp); + g_free(tmp); } else if (sync) { gint status; if (!g_spawn_command_line_sync(command, NULL, NULL, &status, &error)) { - char *tmp = g_strdup_printf( - _("Error launching \"command\": %s"), - error->message); + char *tmp = g_strdup_printf(_("Error launching \"%s\": %s"), + command, error->message); gaim_notify_error(NULL, NULL, _("Unable to open URL"), tmp); @@ -432,9 +434,8 @@ } else { if (!g_spawn_command_line_async(command, &error)) { - char *tmp = g_strdup_printf( - _("Error launching \"command\": %s"), - error->message); + char *tmp = g_strdup_printf(_("Error launching \"%s\": %s"), + command, error->message); gaim_notify_error(NULL, NULL, _("Unable to open URL"), tmp);