[evince] window: Use tmp dir as containing folder for non-native file
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] window: Use tmp dir as containing folder for non-native file
- Date: Wed, 9 Jun 2021 02:55:58 +0000 (UTC)
commit da8cacb9be9ff2449711dd50cbb7ac9cb7775d98
Author: Marek Kasik <mkasik redhat com>
Date: Tue Feb 16 17:15:20 2021 +0100
window: Use tmp dir as containing folder for non-native file
Show the temporary directory containing the downloaded document
as containing folder for documents from remote URIs.
It fails currently since it can not open remote URIs.
shell/ev-window.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/shell/ev-window.c b/shell/ev-window.c
index f728fa77..f3f42bcf 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -3306,6 +3306,10 @@ ev_window_cmd_open_containing_folder (GSimpleAction *action,
app = g_app_info_get_default_for_type ("inode/directory", FALSE);
file = g_file_new_for_uri (priv->uri);
+ if (!g_file_is_native (file)) {
+ g_object_unref (file);
+ file = g_file_new_for_uri (ev_document_get_uri (priv->document));
+ }
if (app == NULL) {
dzl_file_manager_show (file, &error);
if (error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]