Make %u in command lines work just like %s

This is not strictly by the spec but it works in practise.
This commit is contained in:
Christian Dywan 2010-01-10 21:55:53 +01:00
parent 4fcf840ed3
commit 16947894d4

View 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