[Xfce4-commits] <midori:master> Quote config folder when spawning private browsing

Christian Dywan noreply at xfce.org
Thu Aug 18 22:12:02 CEST 2011


Updating branch refs/heads/master
         to b8512f2532b6e7ecddf988cc5e027cb318f0523a (commit)
       from 0b829401aed84701a59dd2fff340b1fb7434cd5f (commit)

commit b8512f2532b6e7ecddf988cc5e027cb318f0523a
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Aug 18 22:10:57 2011 +0200

    Quote config folder when spawning private browsing
    
    On Windows the folder typically contains spaces.

 midori/sokoke.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/midori/sokoke.c b/midori/sokoke.c
index c60c930..c71864c 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);


More information about the Xfce4-commits mailing list