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