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:
parent
4fcf840ed3
commit
16947894d4
1 changed files with 4 additions and 0 deletions
|
@ -378,9 +378,13 @@ sokoke_spawn_program (const gchar* command,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* FIXME: Implement Hildon specific version */
|
/* FIXME: Implement Hildon specific version */
|
||||||
|
gchar* uri_format;
|
||||||
gchar* command_ready;
|
gchar* command_ready;
|
||||||
gchar** argv;
|
gchar** argv;
|
||||||
|
|
||||||
|
if ((uri_format = strstr (command, "%u")))
|
||||||
|
uri_format[1] = 's';
|
||||||
|
|
||||||
if (strstr (command, "%s"))
|
if (strstr (command, "%s"))
|
||||||
command_ready = g_strdup_printf (command, argument);
|
command_ready = g_strdup_printf (command, argument);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue