From 16947894d4471afd9d3898dc22dcc3ab0ea66386 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 10 Jan 2010 21:55:53 +0100 Subject: [PATCH] Make %u in command lines work just like %s This is not strictly by the spec but it works in practise. --- midori/sokoke.c | 4 ++++ 1 file changed, 4 insertions(+) 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