From: Christian Dywan Date: Sun, 10 Jan 2010 20:55:53 +0000 (+0100) Subject: Make %u in command lines work just like %s X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16947894d4471afd9d3898dc22dcc3ab0ea66386;p=midori Make %u in command lines work just like %s This is not strictly by the spec but it works in practise. --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 66ae0f30..db185997 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -378,9 +378,13 @@ sokoke_spawn_program (const gchar* command, else { /* FIXME: Implement Hildon specific version */ + gchar* uri_format; gchar* command_ready; gchar** argv; + if ((uri_format = strstr (command, "%u"))) + uri_format[1] = 's'; + if (strstr (command, "%s")) command_ready = g_strdup_printf (command, argument); else