diff --git a/midori/midori-browser.c b/midori/midori-browser.c index a7192137..8f81ff9a 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2139,7 +2139,12 @@ static void midori_browser_spawn_app (const gchar* uri) { const gchar* executable = sokoke_get_argv (NULL)[0]; - gchar* command = g_strconcat (executable, " -a", NULL); + /* "midori" + "/usr/bin/midori" + "c:/Program Files/Midori/bin/midori.exe" */ + gchar* quoted = g_shell_quote (executable); + gchar* command = g_strconcat (quoted, " -a", NULL); + g_free (quoted); sokoke_spawn_program (command, uri, FALSE); g_free (command); }