Updating branch refs/heads/master
         to 4cc13a5a6ca3e29e035896c7225da726b2f58b7d (commit)
       from 1d01283125a224e96a3008dd4e28d92f6c26a7e1 (commit)

commit 4cc13a5a6ca3e29e035896c7225da726b2f58b7d
Author: Enrico Tröger <enr...@xfce.org>
Date:   Mon Oct 5 19:45:32 2009 +0200

    Properly handle spaces in URIs

 src/window.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/window.c b/src/window.c
index 7070dcb..7fcfd90 100644
--- a/src/window.c
+++ b/src/window.c
@@ -537,9 +537,10 @@ static void action_open_cb(G_GNUC_UNUSED GtkAction 
*action, GigoloWindow *window
                        b = gigolo_settings_get_bookmark_by_uri(priv->settings, 
uri);
                        if (b != NULL)
                                setptr(uri, g_build_filename(uri, 
gigolo_bookmark_get_folder(b), NULL));
+                       /* escape spaces and similar */
+                       setptr(uri, g_uri_unescape_string(uri, 
G_URI_RESERVED_CHARS_ALLOWED_IN_USERINFO));
 
-                       cmd = g_strconcat(file_manager, " ", uri, NULL);
-
+                       cmd = g_strconcat(file_manager, " \"", uri, "\"", NULL);
                        if (! g_spawn_command_line_async(cmd, &error))
                        {
                                verbose("%s", error->message);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to