Revert parts of c3337bdd80

We still need a copy for the plugins.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2015-12-06 17:38:14 +01:00
parent c3337bdd80
commit 3d14894549

View file

@ -577,11 +577,6 @@ document_info_open(gpointer data)
file = g_file_get_path(gf);
}
else {
char* gf_file_path = g_file_get_path(gf);
if (gf_file_path != NULL) {
/* file is not given via a native path, but available from a path */
file = gf_file_path;
} else {
/* copy file with GIO */
file = prepare_document_open_from_gfile(document_info->zathura, gf);
if (file == NULL) {
@ -591,7 +586,6 @@ document_info_open(gpointer data)
document_info->zathura->stdin_support.file = g_strdup(file);
}
}
}
g_object_unref(gf);
}