]> spindle.queued.net Git - midori/commitdiff
Make %u in command lines work just like %s
authorChristian Dywan <christian@twotoasts.de>
Sun, 10 Jan 2010 20:55:53 +0000 (21:55 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 10 Jan 2010 21:02:46 +0000 (22:02 +0100)
This is not strictly by the spec but it works in practise.

midori/sokoke.c

index 66ae0f30922afe0caa9c1b241d5eb713dd7e7a63..db18599717892362b191289d5447b36406c7807d 100644 (file)
@@ -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