From b8512f2532b6e7ecddf988cc5e027cb318f0523a Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 18 Aug 2011 22:10:57 +0200 Subject: [PATCH] Quote config folder when spawning private browsing On Windows the folder typically contains spaces. --- midori/sokoke.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/midori/sokoke.c b/midori/sokoke.c index c60c930e..c71864c2 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -601,8 +601,12 @@ sokoke_spawn_app (const gchar* uri, gchar* quoted = g_shell_quote (executable); gchar* command; if (private) - command = g_strconcat (quoted, " -c ", sokoke_set_config_dir (NULL), + { + gchar* quoted_config = g_shell_quote (sokoke_set_config_dir (NULL)); + command = g_strconcat (quoted, " -c ", quoted_config, " -p", NULL); + g_free (quoted_config); + } else command = g_strconcat (quoted, " -a", NULL); g_free (quoted); -- 2.39.5