Blame SOURCES/evince-3.28.4-containing-folder.patch

f3b9ff
From 9756fdca2efe71738d02792e839862cb5f0a0244 Mon Sep 17 00:00:00 2001
f3b9ff
From: Marek Kasik <mkasik@redhat.com>
f3b9ff
Date: Tue, 16 Feb 2021 17:15:20 +0100
f3b9ff
Subject: [PATCH] window: Use tmp dir as containing folder for non-native file
f3b9ff
f3b9ff
Show the temporary directory containing the downloaded document
f3b9ff
as containing folder for documents from remote URIs.
f3b9ff
f3b9ff
It fails currently since it can not open remote URIs.
f3b9ff
---
f3b9ff
 shell/ev-window.c | 4 ++++
f3b9ff
 1 file changed, 4 insertions(+)
f3b9ff
f3b9ff
diff --git a/shell/ev-window.c b/shell/ev-window.c
f3b9ff
index ba282e18..a1bc55f0 100644
f3b9ff
--- a/shell/ev-window.c
f3b9ff
+++ b/shell/ev-window.c
f3b9ff
@@ -3290,6 +3290,10 @@ ev_window_cmd_open_containing_folder (GSimpleAction *action,
f3b9ff
 	}
f3b9ff
 
f3b9ff
 	file = g_file_new_for_uri (window->priv->uri);
f3b9ff
+	if (!g_file_is_native (file)) {
f3b9ff
+		g_object_unref (file);
f3b9ff
+		file = g_file_new_for_uri (ev_document_get_uri (window->priv->document));
f3b9ff
+	}
f3b9ff
 	list.next = list.prev = NULL;
f3b9ff
 	list.data = file;
f3b9ff
 
f3b9ff
-- 
f3b9ff
2.30.2
f3b9ff