diff -Nru evince-3.4.0/debian/changelog evince-3.4.0/debian/changelog --- evince-3.4.0/debian/changelog 2013-07-15 17:44:55.000000000 +0000 +++ evince-3.4.0/debian/changelog 2014-10-15 15:23:50.000000000 +0000 @@ -1,3 +1,10 @@ +evince (3.4.0-0ubuntu1.8) precise; urgency=low + + * debian/patches/git_fix_sent_to_when_filename_contains_spaces.patch: + - Unscape the uri before building the command line and use quotes for the command argument (lp: #1032680) + + -- Bryan Quigley Wed, 15 Oct 2014 15:20:36 +0000 + evince (3.4.0-0ubuntu1.7) precise; urgency=low * debian/patches/git_sidebar_thumbnails.patch: diff -Nru evince-3.4.0/debian/control evince-3.4.0/debian/control --- evince-3.4.0/debian/control 2013-07-15 17:45:52.000000000 +0000 +++ evince-3.4.0/debian/control 2014-10-15 15:52:45.000000000 +0000 @@ -7,7 +7,7 @@ Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian GNOME Maintainers -Uploaders: Debian GNOME Maintainers , Jeremy Bicha +Uploaders: Debian GNOME Maintainers Build-Depends: cdbs (>= 0.4.90), debhelper (>= 8), dh-autoreconf, diff -Nru evince-3.4.0/debian/patches/git_fix_sent_to_when_filename_contains_spaces.patch evince-3.4.0/debian/patches/git_fix_sent_to_when_filename_contains_spaces.patch --- evince-3.4.0/debian/patches/git_fix_sent_to_when_filename_contains_spaces.patch 1970-01-01 00:00:00.000000000 +0000 +++ evince-3.4.0/debian/patches/git_fix_sent_to_when_filename_contains_spaces.patch 2014-10-15 15:19:56.000000000 +0000 @@ -0,0 +1,29 @@ +From 00acd7274797fe3576be92f21faa32fd8692c95d Mon Sep 17 00:00:00 2001 +From: Carlos Garcia Campos +Date: Tue, 7 Aug 2012 18:54:44 +0200 +Subject: shell: Fix sent to when filename contains spaces + +Unscape the uri before building the command line and use quotes for the +command argument. + +https://bugzilla.gnome.org/show_bug.cgi?id=681144 + +Index: evince-3.4.0/shell/ev-window.c +=================================================================== +--- evince-3.4.0.orig/shell/ev-window.c 2014-10-09 17:45:01.000000000 +0000 ++++ evince-3.4.0/shell/ev-window.c 2014-10-15 15:19:14.163547325 +0000 +@@ -2952,10 +2952,13 @@ + 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", nautilus_sendto, uri); ++ unescaped_uri = g_uri_unescape_string (uri, NULL); ++ command = g_strdup_printf ("%s \"%s\"", nautilus_sendto, unescaped_uri); ++ g_free (unescaped_uri); + app_info = g_app_info_create_from_commandline (command, NULL, 0, &error); + if (app_info) { + GdkAppLaunchContext *context; diff -Nru evince-3.4.0/debian/patches/series evince-3.4.0/debian/patches/series --- evince-3.4.0/debian/patches/series 2013-07-15 17:45:42.000000000 +0000 +++ evince-3.4.0/debian/patches/series 2014-10-15 15:17:44.000000000 +0000 @@ -4,3 +4,4 @@ git_frop_buggy_gfree.patch git_notes_text_color.patch git_sidebar_thumbnails.patch +git_fix_sent_to_when_filename_contains_spaces.patch