Package: release.debian.org Severity: normal User: [email protected] Usertags: unblock
Please unblock package atril Atril 1.8.1+dsfg1-3 fixes #772014. When selecting multiple document files in Caja (filebrowser) you can now open them all by right-click -> Open in Document Viewer. In previous versions of atril, only the first document got opened. unblock atril/1.8.1+dfsg1-3 -- System Information: Debian Release: jessie/sid APT prefers stable APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 'testing-proposed-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -Nru atril-1.8.1+dfsg1/debian/changelog atril-1.8.1+dfsg1/debian/changelog --- atril-1.8.1+dfsg1/debian/changelog 2014-10-25 18:45:13.000000000 +0200 +++ atril-1.8.1+dfsg1/debian/changelog 2014-12-04 12:32:40.000000000 +0100 @@ -1,3 +1,11 @@ +atril (1.8.1+dfsg1-3) unstable; urgency=medium + + * debian/patches: + + Add 0001_open-multiple-files.patch. Allow selecting multiple files + and opening them in Atril. (Closes: #772014). + + -- Mike Gabriel <[email protected]> Thu, 04 Dec 2014 12:32:18 +0100 + atril (1.8.1+dfsg1-2) unstable; urgency=medium [ Vangelis Mouhtsis ] diff -Nru atril-1.8.1+dfsg1/debian/patches/0001_open-multiple-files.patch atril-1.8.1+dfsg1/debian/patches/0001_open-multiple-files.patch --- atril-1.8.1+dfsg1/debian/patches/0001_open-multiple-files.patch 1970-01-01 01:00:00.000000000 +0100 +++ atril-1.8.1+dfsg1/debian/patches/0001_open-multiple-files.patch 2014-12-04 12:26:34.000000000 +0100 @@ -0,0 +1,48 @@ +From cee6caa16804a4c4b539518b37d81c1470ca9270 Mon Sep 17 00:00:00 2001 +From: Stefano Karapetsas <[email protected]> +Date: Mon, 13 Oct 2014 16:20:51 +0200 +Subject: [PATCH] Uses g_app_info_launch_uris instead of g_app_info_launch to + spawn other sessions + +Closes https://github.com/mate-desktop/atril/issues/86 + +Solution comes from evince code +--- + shell/ev-application.c | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/shell/ev-application.c b/shell/ev-application.c +index 220519d..da6366f 100644 +--- a/shell/ev-application.c ++++ b/shell/ev-application.c +@@ -282,12 +282,13 @@ ev_spawn (const char *uri, + break; + } + +- g_string_append_printf (cmd, " %s", uri); +- + cmdline = g_string_free (cmd, FALSE); + app = g_app_info_create_from_commandline (cmdline, NULL, 0, &error); + + if (app != NULL) { ++ GList uri_list; ++ GList *uris = NULL; ++ + #if GTK_CHECK_VERSION (3, 0, 0) + ctx = gdk_display_get_app_launch_context (gdk_screen_get_display (screen)); + #else +@@ -297,7 +298,12 @@ ev_spawn (const char *uri, + gdk_app_launch_context_set_screen (ctx, screen); + gdk_app_launch_context_set_timestamp (ctx, timestamp); + +- g_app_info_launch (app, NULL, G_APP_LAUNCH_CONTEXT (ctx), &error); ++ if (uri) { ++ uri_list.data = (gchar *)uri; ++ uri_list.prev = uri_list.next = NULL; ++ uris = &uri_list; ++ } ++ g_app_info_launch_uris (app, uris, G_APP_LAUNCH_CONTEXT (ctx), &error); + + g_object_unref (app); + g_object_unref (ctx); + diff -Nru atril-1.8.1+dfsg1/debian/patches/series atril-1.8.1+dfsg1/debian/patches/series --- atril-1.8.1+dfsg1/debian/patches/series 2014-10-04 00:47:47.000000000 +0200 +++ atril-1.8.1+dfsg1/debian/patches/series 2014-12-04 12:26:34.000000000 +0100 @@ -1 +1,2 @@ +0001_open-multiple-files.patch 2001_omit-gfdl-licensed-help-files.patch

