[Xfce4-commits] <midori:master> Make %u in command lines work just like %s
Christian Dywan
noreply at xfce.org
Sun Jan 10 22:04:01 CET 2010
Updating branch refs/heads/master
to 16947894d4471afd9d3898dc22dcc3ab0ea66386 (commit)
from 4fcf840ed326f4501308ddeeb5ab689d805565ea (commit)
commit 16947894d4471afd9d3898dc22dcc3ab0ea66386
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Jan 10 21:55:53 2010 +0100
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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/midori/sokoke.c b/midori/sokoke.c
index 66ae0f3..db18599 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
More information about the Xfce4-commits
mailing list