]> spindle.queued.net Git - midori/commitdiff
Quote config folder when spawning private browsing
authorChristian Dywan <christian@twotoasts.de>
Thu, 18 Aug 2011 20:10:57 +0000 (22:10 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 18 Aug 2011 20:10:57 +0000 (22:10 +0200)
On Windows the folder typically contains spaces.

midori/sokoke.c

index c60c930e1c31ed798ce508666dbbaad33b9fe103..c71864c2740fb416396c50c134ee1d2e7822bd03 100644 (file)
@@ -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);