summaryrefslogtreecommitdiff
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 1149c929..27ecdaa6 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3140,10 +3140,13 @@ ev_window_cmd_send_to (GtkAction *action,
GAppInfo *app_info;
gchar *command;
const char *uri;
+ char *unescaped_uri;
GError *error = NULL;
uri = ev_window->priv->local_uri ? ev_window->priv->local_uri : ev_window->priv->uri;
- command = g_strdup_printf ("%s %s", caja_sendto, uri);
+ unescaped_uri = g_uri_unescape_string (uri, NULL);
+ command = g_strdup_printf ("%s \"%s\"", caja_sendto, unescaped_uri);
+ g_free (unescaped_uri);
app_info = g_app_info_create_from_commandline (command, NULL, 0, &error);
if (app_info) {
GdkAppLaunchContext *context;