From f0d0dfdce5afb47592d95da8308ed02d471f16e5 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Sun, 29 Jan 2006 05:39:36 +0000 Subject: [PATCH] Append real filename to tmp filename since often document type is * shell/ev-job-xfer.c: (ev_job_xfer_run): Append real filename to tmp filename since often document type is determined by extension. --- ChangeLog | 6 ++++++ shell/ev-job-xfer.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0020ea30..9604ccf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-29 Nickolay V. Shmyrev + + * shell/ev-job-xfer.c: (ev_job_xfer_run): Append + real filename to tmp filename since often document + type is determined by extension. + 2006-01-24 Ricardo Markiewicz * shell/ev-view.c: (add_scroll_binding_keypad), diff --git a/shell/ev-job-xfer.c b/shell/ev-job-xfer.c index 28e7a91a..cc9b7c47 100644 --- a/shell/ev-job-xfer.c +++ b/shell/ev-job-xfer.c @@ -115,9 +115,11 @@ ev_job_xfer_run (EvJobXfer *job) source_uri = gnome_vfs_uri_new (job->uri); if (!gnome_vfs_uri_is_local (source_uri)) { char *tmp_name; + char *base_name; tmp_name = ev_tmp_filename (); - job->local_uri = g_strconcat ("file:", tmp_name, NULL); + base_name = g_path_get_basename (job->uri); + job->local_uri = g_strconcat ("file:", tmp_name, base_name, NULL); g_free (tmp_name); target_uri = gnome_vfs_uri_new (job->local_uri); -- 2.43.5